cannot run project after migrate project from Mendix Studio

1
Hi, Anyone know how to solve this issue? Buildfile: C:\Users\yusneta\OneDrive\Documents\Mendix\SLA_Task-main\deployment\build_core.xml   compile:     [javac] Compiling 89 source files to C:\Users\yusneta\OneDrive\Documents\Mendix\SLA_Task-main\deployment\run\bin     [javac] C:\Users\yusneta\OneDrive\Documents\Mendix\SLA_Task-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\yusneta\OneDrive\Documents\Mendix\SLA_Task-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\yusneta\OneDrive\Documents\Mendix\SLA_Task-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: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] Note: C:\Users\yusneta\OneDrive\Documents\Mendix\SLA_Task-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\yusneta\OneDrive\Documents\Mendix\SLA_Task-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details.   Total time: 7 seconds
asked
3 answers
2

It looks like you’ve upgraded a project to Mendix 9, but not updated the modules it uses from the Marketplace.

The error seems to be specifically with the MendixSSO module, so try updating that, and running the application again.

The Core.execute method is deprecated, so anything using it will fail.

I hope this helps.
 

answered
1

Did you upgrade the module packages?

 

In one of the first lines there seems to be something wrong with MendixSSO

 

[javac] C:\Users\yusneta\OneDrive\Documents\Mendix\SLA_Task-main\javasource\mendixsso\implementation\UserManager.java:87: error: method execute in class Core cannot be applied to given types;

 

I suggest updating those who have a new version.

answered
1

plz check whether the module packages are upgraded

answered