Encountering deprecated items and other errors in the marketplace folder in Mendix upon upgrading the Mendix version

0
Hello and thanking all in advance I am currently working on a Mendix project in version 9.24.12 due to some security vulnerabilities I had to upgrade my Mendix version to 10.6.3 version but upon upgrading I am encountering many Java compilation errors like these : C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\audittrail\log\diff_match_patch.java:1806: warning: [dep-ann] deprecated item is not annotated with @Deprecated   public LinkedList<Patch> patch_make(String text1, String text2,                            ^ C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\email_connector\implementation\EmailListener.java:61: error: cannot find symbol                 context.rollbackTransAction();                        ^   symbol:   method rollbackTransAction()   location: variable context of type IContext C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\email_connector\implementation\NotificationListener.java:59: error: cannot find symbol                 context.rollbackTransAction();                        ^   symbol:   method rollbackTransAction()   location: variable context of type IContext C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\mendixsso\implementation\UserManager.java:40: error: cannot find symbol             c.rollbackTransAction();              ^   symbol:   method rollbackTransAction()   location: variable c of type IContext C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\mendixsso\implementation\UserManager.java:79: error: cannot find symbol             c.rollbackTransAction();              ^   symbol:   method rollbackTransAction()   location: variable c of type IContext C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\objecthandling\actions\deepClone.java:73: error: cannot assign a value to final variable membersToSkip         this.membersToSkip       = this.membersToSkip == null       ? "" : this.membersToSkip;             ^ C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\objecthandling\actions\deepClone.java:74: error: cannot assign a value to final variable membersToKeep         this.membersToKeep       = this.membersToKeep == null       ? "" : this.membersToKeep;             ^ C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\objecthandling\actions\deepClone.java:75: error: cannot assign a value to final variable reverseAssociations         this.reverseAssociations = this.reverseAssociations == null ? "" : this.reverseAssociations;             ^ C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\objecthandling\actions\deepClone.java:76: error: cannot assign a value to final variable excludeEntities         this.excludeEntities     = this.excludeEntities == null     ? "" : this.excludeEntities;             ^ C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\objecthandling\actions\deepClone.java:77: error: cannot assign a value to final variable excludeModules         this.excludeModules      = this.excludeModules == null      ? "" : this.excludeModules;             ^ C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\objecthandling\XPath.java:340: error: cannot find symbol                                                                                                 synchronizedContext.rollbackTransAction();                                                                                                                    ^   symbol:   method rollbackTransAction()   location: variable synchronizedContext of type IContext C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\pcvmodule\actions\formatDateTime.java:84: error: cannot assign a value to final variable Format                                                 this.Format = "dd/MM/yyyy, HH:mm"; // e.g. "03/10/2021, 22:40"                                                     ^ C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\xlsreport\actions\GenerateExcelDoc.java:151: error: cannot assign a value to final variable OutputDocument                                                                 OutputDocument = new FileDocument(getContext());                                                                 ^ C:\Users\tushar.bohra\Mendix\TRAINING-main\javasource\ziphandling\actions\ZipDocuments.java:88: error: cannot assign a value to final variable __ZipFile                     __ZipFile = Core.instantiate(getContext(), "System.FileDocument");                     ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 13 errors 1 warning   FAILURE: Build failed with an exception.   * What went wrong: Execution failed for task ':compile'. > Compilation failed; see the compiler error output for details.   Can anyone help me regarding this.    
asked
1 answers
0

Hi Tushar,

 

you'll have to upgrade the modules of the application as well. Make sure to upgrade the modules one at the time and clean up duplicates in the userlib after each upgrade. 

 

Best regards,

Roy

answered