Can run locally, can commit, but cant create deployment Package

0
Cleaning deployment folder doesn't help, delete the whole deployment folder doesn't help. Any idea what helps?  Buildfile: C:\Users\Jan\AppData\Local\Temp\tmpE33D.tmp\deployment\build_core.xml compile:     [javac] Compiling 328 source files to C:\Users\Jan\AppData\Local\Temp\tmpE33D.tmp\deployment\run\bin     [javac] C:\Users\Jan\AppData\Local\Temp\tmpE33D.tmp\javasource\communitycommons\Misc.java:671: error: unreported exception COSVisitorException; must be caught or declared to be thrown     [javac]             overlay.overlay(new HashMap<>()).save(baos);     [javac]                                                  ^     [javac] C:\Users\Jan\AppData\Local\Temp\tmpE33D.tmp\javasource\ldap\actions\ImportLdapGroups_Group.java:46: error: cannot find symbol     [javac]             Result result = ImportUserRecord.runImportGroupsByGroup(this.LdapServerParameter1);     [javac]                                                                         ^     [javac]   symbol: variable LdapServerParameter1     [javac] C:\Users\Jan\AppData\Local\Temp\tmpE33D.tmp\javasource\ldap\actions\ImportLdapGroups_Path.java:44: error: cannot find symbol     [javac]             Result result = ImportUserRecord.runImportGroups(this.LdapServerParameter1);     [javac]                                                                  ^     [javac]   symbol: variable LdapServerParameter1     [javac] Note: C:\Users\Jan\AppData\Local\Temp\tmpE33D.tmp\javasource\com\mendix\core\Core.java uses or overrides a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] Note: C:\Users\Jan\AppData\Local\Temp\tmpE33D.tmp\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations.     [javac] Note: Recompile with -Xlint:unchecked for details.     [javac] 3 errors BUILD FAILED C:\Users\Jan\AppData\Local\Temp\tmpE33D.tmp\deployment\build_core.xml:27: Compile failed; see the compiler error output for details. Total time: 4 seconds
asked
3 answers
0

Create a new branch using an older commit (Menu->Project->Moreversioning->Manage branche lines) . That will probably run fine. Then re-apply your changes.

answered
0

Take a look at this post and see if it helps https://forum.mendix.com/link/questions/86345

answered
0

The first error is most likely caused by JAR file dependencies that are overlapping.

If you open this project in eclipse, it will be much easier to see the errors and resolve them.

  • First error (unreported exception COSVisitorException): https://forum.mendix.com/link/questions/86046
  • The other error/errors seem to be related to a strange thing that can happen when importing Java actions in Mendix. Sometimes, input parameters to java actions can change names (for example from myVariable to myVariableParameter1). If you look at javasource\ldap\actions\ImportLdapGroups_Path.java and ImportLdapGroups_Group.java, you'll see the parameters passed into the action may or may not have "Parameter1" at the end of their name, and very likely elsewhere in the action those variables are referenced the other way. Change the references in the rest of the action to match whatever they're called in the declaration.
answered