Java compile error

0
Hi, I recently updated to Mendix version 10.0.0. However, whilst trying to run the app locally, I am getting a Javacompile error.  Tried to make sense of the warning but don’t know how to fix this.... Any suggestions? Thanks  Y:\Documents\Mendix\AVLBL-main\javasource\mendixsso\implementation\UserManager.java:39: error: cannot find symbol             c.rollbackTransAction();              ^   symbol:   method rollbackTransAction()   location: variable c of type IContext Y:\Documents\Mendix\AVLBL-main\javasource\mendixsso\implementation\UserManager.java:77: error: cannot find symbol             c.rollbackTransAction();              ^   symbol:   method rollbackTransAction()   location: variable c of type IContext Note: 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. 2 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compile'. > Compilation failed; see the compiler error output for details. * Try: > Run with --stacktrace option to get the stack trace. > Run with --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 7s
asked
1 answers
1

Hello Jan-Willem,

 

Did you try updating the Marketplace module MendixSSO to the latest version (v4.1.0), which should be compatible with Mendix 10?

 

Also make sure that you don’t have both old and new versions of the same Java libraries in the ‘userlib’ folder of the project. If you have for example both ‘oauth2-oidc-sdk-9.39.jar’ and ‘oauth2-oidc-sdk-10.7.1.jar’ in the folder, then ‘oauth2-oidc-sdk-9.39.jar’ (plus all related files such as ‘oauth2-oidc-sdk-9.39.jar.MendixSSO.RequiredLib’) should be deleted.

answered