Problem Converting to 5

0
I have an application that I am trying to convert to Mendix 5 and I am running into a few problems. I open it in the new modeler, load the latest versions of all app store modules I have and then go through the 2 step Java action conversion process. In the second step, I receive the following errors: Buildfile: C:\PAAHC - Mendix 5\deployment\build_core.xml compile: [javac] Compiling 382 source files to C:\PAAHC - Mendix 5\deployment\run\bin [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\Batches.java:12: cannot find symbol [javac] symbol : class IRemoveBatch [javac] location: package com.mendix.systemwideinterfaces.core [javac] import com.mendix.systemwideinterfaces.core.IRemoveBatch; [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:7: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: package com.mendix.systemwideinterfaces.core [javac] import com.mendix.systemwideinterfaces.core.IChangeBatch; [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:14: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] private HashMap<String,HashMap<String,IChangeBatch>> batchChangeMap = new HashMap<String, HashMap<String,IChangeBatch>>(); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\Misc.java:24: cannot find symbol [javac] symbol : class MxRuntime [javac] location: package com.mendix.core [javac] import com.mendix.core.MxRuntime; [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\ORM.java:21: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: package com.mendix.systemwideinterfaces.core [javac] import com.mendix.systemwideinterfaces.core.IChangeBatch; [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\Batches.java:58: cannot find symbol [javac] symbol : class IRemoveBatch [javac] location: class communitycommons.Batches [javac] IRemoveBatch batch = Core.removeBatch(context, entityType, Batches.BATCHSIZEREMOVE, true, false); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\Batches.java:58: cannot find symbol [javac] symbol : method removeBatch(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,int,boolean,boolean) [javac] location: class com.mendix.core.Core [javac] IRemoveBatch batch = Core.removeBatch(context, entityType, Batches.BATCHSIZEREMOVE, true, false); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:14: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] private HashMap<String,HashMap<String,IChangeBatch>> batchChangeMap = new HashMap<String, HashMap<String,IChangeBatch>>(); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:30: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] HashMap<String, IChangeBatch> batchMap = new HashMap<String, IChangeBatch>(); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:30: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] HashMap<String, IChangeBatch> batchMap = new HashMap<String, IChangeBatch>(); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:34: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] IChangeBatch changeBatch; [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:35: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] HashMap<String,IChangeBatch> changeBatchMap = batchChangeMap.get(uniqueBatchIdentifier); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:43: cannot find symbol [javac] symbol : method changeBatch(com.mendix.systemwideinterfaces.core.IContext,java.util.ArrayList<com.mendix.systemwideinterfaces.core.IMendixObject>,int,boolean) [javac] location: class com.mendix.core.Core [javac] changeBatch = Core.changeBatch(context, new ArrayList<IMendixObject>(), 1000, false); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:45: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] HashMap<String, IChangeBatch> batchMap = new HashMap<String, IChangeBatch>(); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:45: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] HashMap<String, IChangeBatch> batchMap = new HashMap<String, IChangeBatch>(); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:53: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] HashMap<String,IChangeBatch> batchMap = batchChangeMap.remove(uniqueBatchIdentifier); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\HandleBatch.java:56: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.HandleBatch [javac] for (IChangeBatch changeBatchObj : batchMap.values()) [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\Misc.java:44: cannot find symbol [javac] symbol : class MxRuntime [javac] location: class communitycommons.Misc [javac] Package currentPackage = MxRuntime.class.getPackage(); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\Misc.java:142: cannot find symbol [javac] symbol : method getFileDocumentContentAsFile(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject) [javac] location: class com.mendix.core.Core [javac] File f = Core.getFileDocumentContentAsFile(context, document); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\ORM.java:73: cannot find symbol [javac] symbol : method addRefreshClass(java.lang.String) [javac] location: class com.mendix.systemwideinterfaces.core.UserAction<capture#42 of ?> [javac] action.addRefreshClass(objectType); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\ORM.java:149: cannot find symbol [javac] symbol : class IChangeBatch [javac] location: class communitycommons.ORM [javac] IChangeBatch b = Core.changeBatch(context, list, 1, false); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\communitycommons\ORM.java:149: cannot find symbol [javac] symbol : method changeBatch(com.mendix.systemwideinterfaces.core.IContext,java.util.List<com.mendix.systemwideinterfaces.core.IMendixObject>,int,boolean) [javac] location: class com.mendix.core.Core [javac] IChangeBatch b = Core.changeBatch(context, list, 1, false); [javac] ^ [javac] C:\PAAHC - Mendix 5\javasource\excelimporter\reader\ExcelImporter.java:87: cannot find symbol [javac] symbol : method addRefreshClass(java.lang.String) [javac] location: interface com.mendix.systemwideinterfaces.core.ICoreAction<capture#508 of ?> [javac] context.getActionList().get(0).addRefreshClass(Column.getType()); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\PAAHC - Mendix 5\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 23 errors BUILD FAILED C:\PAAHC - Mendix 5\deployment\build_core.xml:22: Compile failed; see the compiler error output for details. Total time: 33 seconds Can someone give me some pointers about how to resolve these issues so I can get started with 5? Thanks, Mike
asked
4 answers
2

The Community Commons library has now been updated to a Mendix 5 Beta 6 compatible version.

answered
1

When looking at the documentation for the upgrade all java actions need to be looked over for the changes of 5. Since the Community commons library consist mainly of java actions I would advise to upgrade after a new version of this one is released. File a ticket requesting a new version of this app.

Regards, Ronald

answered
1

Please file a ticket, the Community Commons module should have been updated in the Appstore for the Mendix 5 release but it looks like it wasn't.

answered
0

Hi, I had the same error, which I noted was referencing the 'Community Commons' download from the App Store. I was not actually using any of that in my project, so I deleted 'Community Commons' from my project. I was then able to run the Step 2 you reference above and then Deploy my project in ver 5.0.0.

answered