compilation of java action failed

0
I am facing this issue while running app. I am using SiemensSAMAuthSSOModule-3.0.0.mpk module.
asked
5 answers
0

Looking at the error message, the module you are using is trying to use a version of Core.execute that was deprecated in Mendix 8.6

You need to download a new version of the module, or ask the module’s author to update it to use the new API.

Hope this helps.

answered
0

What error message are you seeing? 

Usually removing the .jar files for the module in the userlib folder, then downloading the latest version of the module from the Marketplace will fix the problem.

answered
0

below is the screenshot

answered
0

Buildfile: C:\Users\f7rvuu\Documents\Mendix\SAMauth-main\deployment\build_core.xml

compile:
    [javac] Compiling 48 source files to C:\Users\f7rvuu\Documents\Mendix\SAMauth-main\deployment\run\bin
    [javac] C:\Users\f7rvuu\Documents\Mendix\SAMauth-main\javasource\siemenssamauthssomodule\actions\custom\CallbackRouteRequestHandler.java:136: error: method execute in class Core cannot be applied to given types;
    [javac]             Object result = Core.execute(context, actionName, 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] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

BUILD FAILED
C:\Users\f7rvuu\Documents\Mendix\SAMauth-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details.

Total time: 4 seconds

Buildfile: C:\Users\f7rvuu\Documents\Mendix\SAMauth-main\deployment\build_core.xml

compile:
    [javac] Compiling 48 source files to C:\Users\f7rvuu\Documents\Mendix\SAMauth-main\deployment\run\bin
    [javac] C:\Users\f7rvuu\Documents\Mendix\SAMauth-main\javasource\siemenssamauthssomodule\actions\custom\CallbackRouteRequestHandler.java:136: error: method execute in class Core cannot be applied to given types;
    [javac]             Object result = Core.execute(context, actionName, 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] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

BUILD FAILED
C:\Users\f7rvuu\Documents\Mendix\SAMauth-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details.

Total time: 4 seconds

answered
0

I am sorry Robert by mistake that comment got removed. But it was very helpful. Thanks for help.

answered