5.13.0 upgrade results in Java compile error

0
Hi all, Just upgraded to 5.13.0 and now I get a Java compile error. My app worked just fine with 5.12.0 so now what? I tried to downgrade but once started the .mpr file is updated to 5.13.0. Buildfile: C:\Users\markroemers\Documents\TimeSlice-main\deployment\build_core.xml compile: [javac] Compiling 96 source files to C:\Users\markroemers\Documents\TimeSlice-main\deployment\run\bin [javac] C:\Users\markroemers\Documents\TimeSlice-main\javasource\administration\proxies\Account.java:62: error: cannot find symbol [javac] IMendixObject mendixObject = Core.create(context, "Administration.Account"); [javac] ^ [javac] symbol: method create(IContext,String) [javac] location: class Core [javac] C:\Users\markroemers\Documents\TimeSlice-main\javasource\administration\proxies\AccountPasswordData.java:73: error: cannot find symbol [javac] IMendixObject mendixObject = Core.create(context, "Administration.AccountPasswordData"); [javac] ^ [javac] symbol: method create(IContext,String) [javac] location: class Core [javac] Note: C:\Users\markroemers\Documents\TimeSlice-main\javasource\com\mendix\core\Core.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\Users\markroemers\Documents\TimeSlice-main\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 errors BUILD FAILED C:\Users\markroemers\Documents\TimeSlice-main\deployment\build_core.xml:27: Compile failed; see the compiler error output for details. Total time: 2 seconds So now I am stuck.... HELP... Thanks Mark
asked
4 answers
4

As mentioned in the release notes of Mendix 5.13.0, a couple of deprecated API methods were removed in this release. The fact that there is still Java code using these methods in your project causes the compile errors.

The files that cause the compile errors are located in the directory javasource\administration\proxies in your project directory. These files are normally automatically generated by the Modeler and should therefore not cause compile errors. However, if the 'Administration' module in your project has been renamed or removed without removing those files, this could happen.

Please delete the directory javasource\administration\proxies in your project directory and try to run your application again. This should solve the problem.

answered
1

If you do not want to procede with the upgrade you could always just throw away your model and do a fresh download from the teamserver. Then you are back at your last commit which should be before the upgrade. Otherwise you did something very stupid (upgrading when there are still changes that not have been committed).

Regards,

Ronald

answered
0

Do you have the error message you got in the console?

answered
0

Buildfile: C:\Users\markroemers\Documents\TimeSlice-main\deployment\build_core.xml

compile: [javac] Compiling 96 source files to C:\Users\markroemers\Documents\TimeSlice-main\deployment\run\bin [javac] C:\Users\markroemers\Documents\TimeSlice-main\javasource\administration\proxies\Account.java:62: error: cannot find symbol [javac] IMendixObject mendixObject = Core.create(context, "Administration.Account"); [javac] ^ [javac] symbol: method create(IContext,String) [javac] location: class Core [javac] C:\Users\markroemers\Documents\TimeSlice-main\javasource\administration\proxies\AccountPasswordData.java:73: error: cannot find symbol [javac] IMendixObject mendixObject = Core.create(context, "Administration.AccountPasswordData"); [javac] ^ [javac] symbol: method create(IContext,String) [javac] location: class Core [javac] Note: C:\Users\markroemers\Documents\TimeSlice-main\javasource\com\mendix\core\Core.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\Users\markroemers\Documents\TimeSlice-main\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 errors

BUILD FAILED C:\Users\markroemers\Documents\TimeSlice-main\deployment\build_core.xml:27: Compile failed; see the compiler error output for details.

Total time: 2 seconds

answered