Getting this error while running after upgrading app from mendix version 8.17 to 9.6

0
Hi Everyone, I am using my application on mendix version 8.17 and now I tried to upgrade it in new version 9.6. After this I haven't received any error but while running app received "compilation java action error” as shown below:   Buildfile: C:\Users\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\deployment\build_core.xml compile:     [javac] Compiling 568 source files to C:\Users\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\deployment\run\bin     [javac] C:\Users\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\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\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\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] C:\Users\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\javasource\deeplink\actions\ExecuteDeeplink.java:74: error: method execute in class Core cannot be applied to given types;     [javac]                     Core.execute(getContext(), link.getMicroflow(), arg);     [javac]                         ^     [javac]   required: T     [javac]   found: IContext,String,IMendixObject     [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\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\javasource\deeplink\actions\ExecuteDeeplink.java:99: error: method execute in class Core cannot be applied to given types;     [javac]                     Core.execute(getContext(), link.getMicroflow(), args);     [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\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\javasource\deeplink\actions\ExecuteDeeplink.java:101: error: method execute in class Core cannot be applied to given types;     [javac]                     Core.execute(getContext(), link.getMicroflow());     [javac]                         ^     [javac]   required: T     [javac]   found: IContext,String     [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\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\javasource\unittesting\TestManager.java:133: error: method execute in class Core cannot be applied to given types;     [javac]                     Core.execute(setupContext, testSuite.getModule() + ".Setup", emptyArguments);     [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\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\javasource\unittesting\TestManager.java:152: error: method execute in class Core cannot be applied to given types;     [javac]                     Core.execute(setupContext, testSuite.getModule() + ".TearDown", emptyArguments);     [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\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\javasource\unittesting\TestManager.java:154: error: method execute in class Core cannot be applied to given types;     [javac]                     Core.execute(Core.createSystemContext(), testSuite.getModule() + ".TearDown", emptyArguments);     [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\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\javasource\unittesting\TestManager.java:344: error: method execute in class Core cannot be applied to given types;     [javac]             Object resultObject = Core.execute(mfContext, mf, emptyArguments);     [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] Note: C:\Users\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\javasource\saml20\implementation\common\MendixUtils.java uses unchecked or unsafe operations.     [javac] Note: Recompile with -Xlint:unchecked for details.     [javac] 8 errors     [javac] 1 warning BUILD FAILED C:\Users\u108104\Documents\Mendix\MDM-MDM_CRP_01_3\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 41 seconds   Could you please suggest me something to run this without any error?   Thanks and Regards, Samarth Jadhav
asked
2 answers
2

It looks like you have an older version of the Community Commons module that is using deprecated functionality. 

The solution would be to download the latest version of Community Commons from the Marketplace and install this.

Hope this helps.

answered
0

Hi Samarth,

 

Indeed Robert is correct, you need to upgrade community commons module which supports 9.6 mendix version.

answered