Error Debuging

0
Hi   I’m a new user to Mendix. Can i try to run, appers : “Compilation of Java actions failed.” Details: “ Buildfile: C:\Users\gonca\Documents\Mendix\App_Teste-main\deployment\build_core.xml compile:     [javac] Compiling 58 source files to C:\Users\gonca\Documents\Mendix\App_Teste-main\deployment\run\bin     [javac] C:\Users\gonca\Documents\Mendix\App_Teste-main\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:\Users\gonca\Documents\Mendix\App_Teste-main\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:\Users\gonca\Documents\Mendix\App_Teste-main\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: C:\Users\gonca\Documents\Mendix\App_Teste-main\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:\Users\gonca\Documents\Mendix\App_Teste-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 2 seconds”   Can you Help me ?  
asked
2 answers
2

Welcome to Mendix!

You have ran into a bug of the MendixSSO that has been solved a couple of days ago. So you can easily fix this by reimporting the module MendixSSO from the appstore, overwriting your current MendixSSO.

Several ways to do this. From Mendix Studio Pro, click on the Appstore-icon at the top right, search for MendixSSO, click it, click the download button. Click OK and you should be good to go.

Edited 10 feb: 9.0.3 is released, including a bugfix for this issue.

answered
0

Hallo,

I´m also new with Mendix and have a similar error. Can someone advise me how to run the app?

I used the project file of ‘build a restaurant booking app’ –> https://bit.ly/2HgDkLP

Buildfile: C:\Users\daanv\OneDrive\Documenten\Mendix\Demo Lokaal App-main\deployment\build_core.xml

compile:
    [javac] Compiling 220 source files to C:\Users\daanv\OneDrive\Documenten\Mendix\Demo Lokaal App-main\deployment\run\bin
    [javac] C:\Users\daanv\OneDrive\Documenten\Mendix\Demo Lokaal App-main\javasource\communitycommons\Misc.java:360: error: method execute in class Core cannot be applied to given types;
    [javac]         return Core.execute(c, microflowName, params);
    [javac]                    ^
    [javac]   required: T
    [javac]   found: IContext,String,Map<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:\Users\daanv\OneDrive\Documenten\Mendix\Demo Lokaal App-main\javasource\communitycommons\Misc.java:590: warning: [dep-ann] deprecated item is not annotated with @Deprecated
    [javac]     public static boolean objectsAreEqual(Object left, Object right) {
    [javac]                           ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: C:\Users\daanv\OneDrive\Documenten\Mendix\Demo Lokaal App-main\javasource\mendixsso\implementation\utils\MendixUtils.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
    [javac] 1 warning

BUILD FAILED
C:\Users\daanv\OneDrive\Documenten\Mendix\Demo Lokaal App-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details.

Total time: 12 seconds


 

Thanks in advance

answered