Compilation of Java actions failed

0
Hi! I am doing the Rapid Developer training (LearnNow). When I try to run the app locally, it is indicating me an error. Would appreciate your ideas on how to solve it :)   Below the details: Buildfile: C:\Documents\Mendix\LearnNow Training Management-main_4\deployment\build_core.xml compile:     [javac] Compiling 72 source files to C:\Documents\Mendix\LearnNow Training Management-main_4\deployment\run\bin     [javac] C:\Documents\Mendix\LearnNow Training Management-main_4\javasource\mendixsso\implementation\UserManager.java:87: error: method execute in class Core cannot be applied to given types;     [javac]         final boolean hasAccess = Core.execute(c, "MendixSSO.RetrieveUserRoles", new HashMap<String, Object>() {{     [javac]                                       ^     [javac]   required: T     [javac]   found: IContext,String,<anonymous HashMap<String,Object>>     [javac]   reason: cannot infer type-variable(s) T,R     [javac]     (actual and formal argument lists differ in length)     [javac]   where T,R are type-variables:     [javac]     T extends CoreAction<R> declared in method <T,R>execute(T)     [javac]     R extends Object declared in method <T,R>execute(T)     [javac] C:\Documents\Mendix\LearnNow Training Management-main_4\javasource\mendixsso\implementation\UserMapper.java:51: error: method execute in class Core cannot be applied to given types;     [javac]         return Core.execute(context, this.createUserMicroflowName, new HashMap<String, Object>() {{     [javac]                    ^     [javac]   required: T     [javac]   found: IContext,String,<anonymous HashMap<String,Object>>     [javac]   reason: cannot infer type-variable(s) T,R     [javac]     (actual and formal argument lists differ in length)     [javac]   where T,R are type-variables:     [javac]     T extends CoreAction<R> declared in method <T,R>execute(T)     [javac]     R extends Object declared in method <T,R>execute(T)     [javac] C:\Documents\Mendix\LearnNow Training Management-main_4\javasource\mendixsso\implementation\UserMapper.java:58: error: method execute in class Core cannot be applied to given types;     [javac]         Core.execute(context, this.updateUserMicroflowName, new HashMap<String, Object>() {{     [javac]             ^     [javac]   required: T     [javac]   found: IContext,String,<anonymous HashMap<String,Object>>     [javac]   reason: cannot infer type-variable(s) T,R     [javac]     (actual and formal argument lists differ in length)     [javac]   where T,R are type-variables:     [javac]     T extends CoreAction<R> declared in method <T,R>execute(T)     [javac]     R extends Object declared in method <T,R>execute(T)     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] Note: C:\Documents\Mendix\LearnNow Training Management-main_4\javasource\mendixsso\implementation\utils\MendixUtils.java uses unchecked or unsafe operations.     [javac] Note: Recompile with -Xlint:unchecked for details.     [javac] 3 errors BUILD FAILED C:\Documents\Mendix\LearnNow Training Management-main_4\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 5 seconds  
asked
1 answers
0

It looks like you are using an older version of the Mendix SSO module that isn’t compatible with Mendix 9,7.

To fix this you need to go to the Marketplace and download the latest version.

https://marketplace.mendix.com/link/component/111349

Hope this helps.

answered