Java compile error upgrading app to Mx10.24.9

0
I'm upgrading my app from Mx9 to Mx10.24.9 > i've followed the step as described in the reference guide https://docs.mendix.com/refguide10/upgrading-from-9-to-10/   When trying to run the app in Mx10.24.9 a Java compile error reported:   javasource\communitycommons\StringUtils.java:231: error: cannot find symbol        return IOUtils.toString(BOMInputStream.builder().setInputStream(inputStream).get(), charset);                                              ^  symbol:   method builder()  location: class BOMInputStreamNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: Some input files use unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.1 error FAILURE: Build failed with an exception.     Any help appreciated!
asked
1 answers
0

Have you tried reinstalling the Community Commons module from the Marketplace?

 

It looks like you have an old .jar file in there, probably commons-io. If reinstalling Community Commons doesn't fix it, then look in your userlib and vendorlib folders using Windows Explorer. See if you have a commons-io jar in both folders, or more than one in userlib. If you do, keep the one in vendorlib, and delete the others. You should only have one of each jar file. If you see other duplicates, delete the ones with the lowest numbers, keeping the one with the highest version number.

 

Good luck!

answered