building server and client product gives error "Java returned: 13"
Description
Environment
Attachments
- 09 Dec 2013, 03:57 PM
Activity
Thomas Bayen December 11, 2013 at 5:05 PM
To part 1 (caused probably by new Eclipse version): For completelyness (and googling people) I give the whole error I got in the log (or on console with my patch) here. My workaround is to delete $HOME/buckminster.output/* and then retry. This seems to solve this issue (but after two weeks of trying I do not believe anything about this).
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Installing org.adempiere.ui.swing.product 1.0.0.
Installing org.idempiere.eclipse.platform.feature.group 1.0.0.v20131209-0050.
Installation failed.
!SESSION 2013-12-09 15:27:10.124 -----------------------------------------------
eclipse.buildId=4.3.0.M20130911-1000
java.version=1.6.0_27
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -application org.eclipse.equinox.p2.director -repository file:/home/tbayen/buckminster.output/org.adempiere.ui.swing_1.0.0-eclipse.feature/site.p2/ -destination /home/tbayen/buckminster.output/org.adempiere.ui.swing_1.0.0-eclipse.feature/adempiere.gtk.linux.x86_64/adempiere-client -profile DefaultProfile -profileProperties org.eclipse.update.install.features=true -installIU org.adempiere.ui.swing.product,org.idempiere.eclipse.platform.feature.group -p2.os linux -p2.ws gtk -p2.arch x86_64 -roaming
Command-line arguments: -application org.eclipse.equinox.p2.director -repository file:/home/tbayen/buckminster.output/org.adempiere.ui.swing_1.0.0-eclipse.feature/site.p2/ -destination /home/tbayen/buckminster.output/org.adempiere.ui.swing_1.0.0-eclipse.feature/adempiere.gtk.linux.x86_64/adempiere-client -profile DefaultProfile -profileProperties org.eclipse.update.install.features=true -installIU org.adempiere.ui.swing.product,org.idempiere.eclipse.platform.feature.group -p2.os linux -p2.ws gtk -p2.arch x86_64 -consoleLog -roaming
!ENTRY org.eclipse.equinox.p2.director 4 10053 2013-12-09 15:27:29.337
!MESSAGE Cannot complete the install because one or more required items could not be found.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2013-12-09 15:27:29.338
!MESSAGE Software being installed: Eclipse Platform for iDempiere 1.0.0.v20131209-0050 (org.idempiere.eclipse.platform.feature.group 1.0.0.v20131209-0050)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2013-12-09 15:27:29.338
!MESSAGE Missing requirement: Eclipse Platform for iDempiere 1.0.0.v20131209-0050 (org.idempiere.eclipse.platform.feature.group 1.0.0.v20131209-0050) requires 'org.eclipse.core.runtime [3.9.0.v20130326-1255]' but it could not be found
Cannot complete the install because one or more required items could not be found.
Software being installed: Eclipse Platform for iDempiere 1.0.0.v20131209-0050 (org.idempiere.eclipse.platform.feature.group 1.0.0.v20131209-0050)
Missing requirement: Eclipse Platform for iDempiere 1.0.0.v20131209-0050 (org.idempiere.eclipse.platform.feature.group 1.0.0.v20131209-0050) requires 'org.eclipse.core.runtime [3.9.0.v20130326-1255]' but it could not be found
Application failed, log file location: /home/tbayen/Java/eclipse-jee-kepler-SR1-linux-gtk-x86_64/configuration/1386599230877.log
Thomas Bayen December 9, 2013 at 3:57 PM(edited)
Part 2:
It seems that forked java ant tasks do not write their messages to stdout.
This patch for the swingclient product ant file is an idea to give a better error message. If you feel good with this we should do the same for the server product. WDYT?
Thomas Bayen December 9, 2013 at 3:50 PM
To part 1:
Carlos pointed me to https://groups.google.com/forum/#!msg/idempiere/sKKA38diT2I/_4bUn7yet0sJ
It seems that many kinds of errors can lead to an "error 13". My special problem seems to come from me using Eclipse Kepler (instead of the officially proposed Indigo). So it is my fault that I use iDempiere outside of the official specifications. I will lower the Priority of this bug and declare this part of my issue as closed (until we officially update to kepler but this will mean to update our used plugins and will probably solve my bug).
When I want to build the server.product or the swingclient.product according to http://www.globalqss.com/wiki/index.php/IDempiere/Creating_Installers_from_Eclipse I get the following message:
The error message was first mentioned in 2012-09-10 in https://groups.google.com/forum/#!topic/idempiere/gCGs8RdTOqU
As far as I can say the error message comes and goes for unknown reasons. I have a workspace where is sometimes shows up and after trying a thousand things like workspace clean etc. it goes away. After changing something in the feature project it comes back. This needs some more research.
This issue has two parts: One part is that there is an error. The other part is that this error does not give a meaningful error message (this is why I fight for two weeks with this). The "error 13" leads by google to an eclipse issue about a wrong binary architecture. I believe this is a wrong path and the error lies somewhere in the idempiere build configuration.