When I deployed my package I get an error message.

1
Hello, when I deployed my package I get the following error message. Starting build for Mendix Project file: /srv/cloud/slots/tr10000/deploy/data/tmp/1485425122880-0/src/VWT-Toegangspas.mpr Using the following options: * Build target: Package * Deployment package file: /srv/cloud/slots/tr10000/deploy/data/tmp/buildjob6345981244423030646.mda * Model version: 1.0.0.25 * Project name: VWT Apps Reading project file... Building project... Executing step 'Synchronize with file system' * Synchronizing with file system... Executing step 'Initialize' * Preparing deployment... Executing step 'Check prerequisites' * Checking for errors... Executing step 'Clean deployment directory' * Cleaning deployment directory... * Cleaning deployment directory... Executing step 'Prepare deployment' Executing step 'Build deployment structure' * Writing files... * Compiling Java... ERROR: An error occurred while compiling Java actions Buildfile: /srv/cloud/slots/tr10000/deploy/data/tmp/1485425122880-0/src/deployment/build_core.xml compile: [javac] Compiling 278 source files to /srv/cloud/slots/tr10000/deploy/data/tmp/1485425122880-0/src/deployment/run/bin [javac] /srv/cloud/slots/tr10000/deploy/data/tmp/1485425122880-0/src/javasource/restservices/publish/RestServiceHandler.java:250: warning: '_' used as an identifier [javac] String _) { [javac] ^ [javac] (use of '_' as an identifier might not be supported in releases after Java SE 8) [javac] /srv/cloud/slots/tr10000/deploy/data/tmp/1485425122880-0/src/javasource/communitycommons/Misc.java:656: error: unreported exception COSVisitorException; must be caught or declared to be thrown [javac] overlay.overlay(new HashMap<Integer, String>()).save(baos); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: /srv/cloud/slots/tr10000/deploy/data/tmp/1485425122880-0/src/javasource/com/mendix/core/Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error [javac] 1 warning BUILD FAILED /srv/cloud/slots/tr10000/deploy/data/tmp/1485425122880-0/src/deployment/build_core.xml:27: Compile failed; see the compiler error output for details. Total time: 6 seconds Any idea where this comes from. Locally it works well.  
asked
3 answers
0

Are you using the latest version of the Community Commons module?

If you do have the latest version and the error still occurs, you could try opening the project in Eclipse and find javasource/communitycommons/Misc.java. Eclipse should propose a fix for line 656.

answered
0

Clean deployment Directory may also help. The _ message is sometime caused by Eclipse intervening with Mendix.

answered
0

See this question for the solution: https://forum.mendix.com/link/questions/86046

answered