Hi Arthur,
You most likely have some old jars which aren't removed. More info in this topic as well:
https://forum.mendix.com/link/questions/86046
If deleting the suggested libraries isn't working you could try the short term fix and deploy it in eclipse and right click on the funtion for a quick fix by adding the throw suggested as a fix by Eclipse.
Kind Regards,