An error occurred while exporting version 9.24.9 app as mpk and running it in version 10.16.1.

0
As explained in the title, this error occurred when I exported the app I was working on in mendix studio pro version 9.24.9 as mpk to upgrade the version and ran the mpk in 10.16.1 to build the app. How do I fix it?       C:\Users\cadians\Mendix\SungGang\javasource\communitycommons\actions\DeepClone.java:73: error: cannot assign a value to final variable membersToSkip        this.membersToSkip       = this.membersToSkip == null       ? "" : this.membersToSkip;            ^C:\Users\cadians\Mendix\SungGang\javasource\communitycommons\actions\DeepClone.java:74: error: cannot assign a value to final variable membersToKeep        this.membersToKeep       = this.membersToKeep == null       ? "" : this.membersToKeep;            ^C:\Users\cadians\Mendix\SungGang\javasource\communitycommons\actions\DeepClone.java:75: error: cannot assign a value to final variable reverseAssociations        this.reverseAssociations = this.reverseAssociations == null ? "" : this.reverseAssociations;            ^C:\Users\cadians\Mendix\SungGang\javasource\communitycommons\actions\DeepClone.java:76: error: cannot assign a value to final variable excludeEntities        this.excludeEntities     = this.excludeEntities == null     ? "" : this.excludeEntities;            ^C:\Users\cadians\Mendix\SungGang\javasource\communitycommons\actions\DeepClone.java:77: error: cannot assign a value to final variable excludeModules        this.excludeModules      = this.excludeModules == null      ? "" : this.excludeModules;            ^C:\Users\cadians\Mendix\SungGang\javasource\communitycommons\Misc.java:319: error: cannot find symbol                newContext.rollbackTransAction();                          ^  symbol:   method rollbackTransAction()  location: variable newContext of type IContextC:\Users\cadians\Mendix\SungGang\javasource\communitycommons\XPath.java:332: error: cannot find symbol                        synchronizedContext.rollbackTransAction();                                           ^  symbol:   method rollbackTransAction()  location: variable synchronizedContext of type IContextC:\Users\cadians\Mendix\SungGang\javasource\emailtemplate\actions\SendEmail.java:199: error: cannot assign a value to final variable PlainBody                this.PlainBody = ConvertHTMLBodyToPlainText.removeHTML(this.HtmlBody);                    ^C:\Users\cadians\Mendix\SungGang\javasource\mendixsso\implementation\UserManager.java:39: error: cannot find symbol            c.rollbackTransAction();             ^  symbol:   method rollbackTransAction()  location: variable c of type IContextC:\Users\cadians\Mendix\SungGang\javasource\mendixsso\implementation\UserManager.java:77: error: cannot find symbol            c.rollbackTransAction();             ^  symbol:   method rollbackTransAction()  location: variable c of type IContextNote: 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.10 errors FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':compile'.> Compilation failed; see the compiler error output for details. * Try:> Run with --scan to get full insights. BUILD FAILED in 2s
asked
1 answers
0

Hi bosung kim,

Have a look at the linked docs.

In your case it seems like the JavaAction in the community commons had a breaking change and caused this error. Try updating all your Marketplace modules (especially community commons) before you retry the version upgrade.

answered