Mendix 9 compilation error

0
Hi Experts, I am converting the applicatio from 8.12.22 version to 9.6.6 , I have cleared all depreciation messages. After converting in place the compilation errors are like below. But the catch is when I run again the errors are increasing some time and decreasing some time . Can anyone help me with log.   Buildfile: C:\Mendix\trace - Copy\deployment\build_core.xml compile: [javac] Compiling 711 source files to C:\Mendix\trace - Copy\deployment\run\bin [javac] C:\Mendix\trace - Copy\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:\Mendix\trace - Copy\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] C:\Mendix\trace - Copy\javasource\processqueue\queuehandler\ObjectQueueExecutor.java:138: error: method execute in class Core cannot be applied to given types; [javac] Object booleanResult = Core.execute(this.context, this.microflowName, this.action); [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:\Mendix\trace - Copy\javasource\processqueue\queuehandler\ObjectQueueExecutor.java:222: error: method execute in class Core cannot be applied to given types; [javac] Core.execute(context, "ProcessQueue.SF_WriteExecutionLog", 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:\Mendix\trace - Copy\javasource\processqueue\queuehandler\ObjectQueueExecutor.java:240: error: method execute in class Core cannot be applied to given types; [javac] Core.execute(this.context, "ProcessQueue.SF_WriteExecutionLog", 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:\Mendix\trace - Copy\javasource\scheduler\impl\ScheduledJob.java:50: error: method execute in class Core cannot be applied to given types; [javac] Core.execute(context, mfName, 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] C:\Mendix\trace - Copy\javasource\sftpconnection\actions\DisconnectIdleSessions.java:30: error: cannot find symbol [javac] Session session = sftpconnection.helpers.HandleFileSftp.userSession.get(this.UserParameter1); [javac] ^ [javac] symbol: variable UserParameter1 [javac] C:\Mendix\trace - Copy\javasource\sftpconnection\helpers\HandleFileSftp.java:81: error: method execute in class Core cannot be applied to given types; [javac] IMendixObject privateKeyMendix = Core.execute(context, "SFTPConnection.PrivateKey_GetOrCreatePrivateKey"); [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:\Mendix\trace - Copy\javasource\sftpconnection\helpers\HandleFileSftp.java:103: error: method execute in class Core cannot be applied to given types; [javac] IMendixObject privateKeyMendix = Core.execute(context, "SFTPConnection.PrivateKey_GetOrCreatePrivateKey"); [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] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 9 errors BUILD FAILED C:\Mendix\trace - Copy\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 18 seconds  
asked
1 answers
1

Hi,

The issues seems to come from old versions of app store modules. Try to updates the modules

ProcessQueue

Probably: https://marketplace.mendix.com/link/component/393

 

DatabaseReplication

Probably: https://marketplace.mendix.com/link/component/160 

 

SFTPConnection

Probably: https://marketplace.mendix.com/link/component/120302 

 

Cross fingers that the newest versions of these modules are compatible with Mx9. Also make sure that you follow the update steps in the module documentation / library cleanup

 

BR Lukas

 

answered