Compilation of Java actions failed

0
Iam getting this error while Iam executing the application. The error says:   Buildfile: C:\Users\KarthikKAyyalasomaya\XPath_II_startingpoint-main\deployment\build_core.xml compile:     [javac] Compiling 351 source files to C:\Users\KarthikKAyyalasomaya\XPath_II_startingpoint-main\deployment\run\bin     [javac] C:\Users\KarthikKAyyalasomaya\XPath_II_startingpoint-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\KarthikKAyyalasomaya\XPath_II_startingpoint-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] C:\Users\KarthikKAyyalasomaya\XPath_II_startingpoint-main\javasource\databasereplication\actions\ImportActivitySet.java:45: error: method execute in class Core cannot be applied to given types;     [javac]             Core.execute(context, "DatabaseReplication.ProcessActivitySet", paramMap);     [javac]                 ^     [javac]   required: T     [javac]   found: IContext,String,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\KarthikKAyyalasomaya\XPath_II_startingpoint-main\javasource\databasereplication\implementation\IDataManager.java:118: error: method execute in class Core cannot be applied to given types;     [javac]                 Core.execute(this.settings.getContext(), this.settings.getFinishingMicroflowName(), params);     [javac]                     ^     [javac]   required: T     [javac]   found: IContext,String,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] 3 errors     [javac] 1 warning BUILD FAILED C:\Users\KarthikKAyyalasomaya\XPath_II_startingpoint-main\deployment\build_core.xml:30: Compile failed; see the compiler error output for details. Total time: 9 seconds  
asked
1 answers
2

This looks like you’re using an older version of Community Commons that isn’t compatible with Mendix 9.12.

The solution would be to download the latest version of Community Commons from the Marketplace.
https://marketplace.mendix.com/link/component/170

 

Alternatively, if you are following a Learning Path, it may be worth checking if it is meant to be followed using a different version of Mendix. 

Hope this helps

answered