Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Headless build fails generating an exception(PDE + p2)
Headless build fails generating an exception [message #507507] Wed, 13 January 2010 17:48 Go to next message
Giuseppe Montalto is currently offline Giuseppe Montalto
Messages: 18
Registered: July 2009
Junior Member
Hi all!

I'm unsuccessfully Crying or Very Sad attempting to make my headless build system working with a product based on Galileo (3.5.1, actually) using the p2 Product build.

Every attempt ends with an exception (see below).

I was wondering if anyone has ever come across such a kind of error...

I've also googled a lot, with no success; I'm not that much skilled on PDE and Equinox/p2...

Note that, the previous versions of the product (incidentally, it's named STWorkbench), which were based on older Eclipse releases (up to 3.4.x) didn't include the p2 stuff.

some useful info, in no particular order:


  • I actually build from a .product;
  • I'm keeping Eclipse's default xml build scripts untouched;
  • Build attempts are always performed on the same Linux host (which, incidentally, is still able to build the former versions of the product);
  • I'm building a fully branded application based on Eclipse+CDT+custom plugins, not an RCP;
  • several modified eclipse and cdt plug-ins are used (including org.eclipse.equinox.launcher, org.eclipse.pde.core and org.eclipse.pde.ui);


this is the command line that actually gets executed:

java -jar /u/guiteam/builder/eclipse/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.ant.core.antRunner -buildfile /u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml -Dbuilder=/u/guiteam/builder/st_eclipse/delivery/ant -DstworkbenchSourceDir=/u/guiteam/builder/st_eclipse -Dbase=/u/guiteam/builder -verbose -debug


and here's a snippet of the log, including the exception at the end:


(...) 

Adding reference: Build a Product
Setting ro project property: ant.file.Build a Product -> /u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml
Project base dir set to: /u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild
 +Target: 
 +Target: main
 +Target: generateFeature
Override ignored for property "allElementsFile"
Importing file /u/guiteam/builder/eclipse_5.0.0/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/build.xml from /u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml
parsing buildfile /u/guiteam/builder/eclipse_5.0.0/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/build.xml with URI = file:/u/guiteam/builder/eclipse_5.0.0/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/build.xml
Setting ro project property: ant.file.Build All Elements -> /u/guiteam/builder/eclipse_5.0.0/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/build.xml
Already defined in main or a previous import, ignore main
 +Target: Build All Elements.main
 +Target: preBuild
 +Target: Build All Elements.preBuild
 +Target: processRepos
 +Target: Build All Elements.processRepos
 +Target: fetch
 +Target: Build All Elements.fetch
 +Target: generate
 +Target: Build All Elements.generate
 +Target: process
 +Target: Build All Elements.process
 +Target: assemble
 +Target: Build All Elements.assemble
 +Target: package
 +Target: Build All Elements.package
 +Target: postBuild
 +Target: Build All Elements.postBuild
 +Target: clean
 +Target: Build All Elements.clean
Override ignored for property "builder"
Override ignored for property "builderDirectory"
Override ignored for property "buildProperties"
 [property] Loading /u/guiteam/builder/st_eclipse/delivery/ant/build.properties
Override ignored for property "javacTarget"
Override ignored for property "flattenDependencies"
Override ignored for property "skipBase"
Override ignored for property "eclipseBaseURL"
Override ignored for property "baseos"
Override ignored for property "collectingFolder"
Override ignored for property "p2.gathering"
Override ignored for property "mapsCheckoutTag"
Override ignored for property "timestamp"
Override ignored for property "eclipseURL"
Override ignored for property "configs"
Override ignored for property "p2.artifact.repo.name"
Override ignored for property "mapsRepo"
Override ignored for property "p2.director.profile"
Override ignored for property "buildType"
Override ignored for property "skipMaps"
Override ignored for property "javacSource"
Override ignored for property "mapsRoot"
Override ignored for property "basews"
Override ignored for property "p2.flavor"
Override ignored for property "p2.artifact.repo"
Override ignored for property "p2.publish.artifacts"
Override ignored for property "p2.build.repo"
Override ignored for property "generate.p2.metadata"
Override ignored for property "mapsTagTag"
Override ignored for property "zipargs"
Override ignored for property "transformedRepoLocation"
Override ignored for property "archivePrefix"
Override ignored for property "product"
Override ignored for property "p2.metadata.repo"
Override ignored for property "javacFailOnError"
Override ignored for property "buildId"
Override ignored for property "buildDirectory"
Override ignored for property "logExtension"
Override ignored for property "basearch"
Override ignored for property "p2.director.log"
Override ignored for property "p2.product.qualifier"
Override ignored for property "buildLabel"
Override ignored for property "p2.metadata.repo.name"
Override ignored for property "javacDebugInfo"
Override ignored for property "skipFetch"
Override ignored for property "baseLocation"
Override ignored for property "tarargs"
Override ignored for property "eclipseBuildId"
Override ignored for property "javacVerbose"
Override ignored for property "runPackager"
[available] Unable to find /u/guiteam/builder/st_eclipse/delivery/ant/customTargets.xml to set property customTargets
Override ignored for property "customTargets"
Override ignored for property "genericTargets"
Override ignored for property "pluginPath"
Override ignored for property "pluginList"
Override ignored for property "featureList"
Override ignored for property "includeLaunchers"
Override ignored for property "generatedBuildProperties"
Build sequence for target(s) `generateFeature' is [generateFeature]
Complete build sequence is [generateFeature, postBuild, Build All Elements.main, assemble, Build All Elements.postBuild, processRepos, package, Build All Elements.processRepos, main, Build All Elements.process, Build All Elements.generate, Build All Elements.preBuild, Build All Elements.package, Build All Elements.fetch, process, Build All Elements.clean, fetch, clean, generate, Build All Elements.assemble, preBuild, ]
  [antcall] Entering /u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml...
Adding reference: eclipse.ant.targetVector
Build sequence for target(s) `generateFeature' is [generateFeature]
Complete build sequence is [generateFeature, postBuild, Build All Elements.main, assemble, Build All Elements.postBuild, processRepos, package, Build All Elements.processRepos, main, Build All Elements.process, Build All Elements.generate, Build All Elements.preBuild, Build All Elements.package, Build All Elements.fetch, process, Build All Elements.clean, fetch, clean, generate, Build All Elements.assemble, preBuild, ]

generateFeature:
[eclipse.generateFeature] Some inter-plug-in dependencies have not been satisfied.
[eclipse.generateFeature] Bundle org.eclipse.birt.chart.examples:
[eclipse.generateFeature] 	Another singleton version selected: org.eclipse.birt.chart.examples_2.5.1.v20090821
[eclipse.generateFeature] Bundle org.eclipse.birt.report.data.oda.jdbc.dbprofile:
[eclipse.generateFeature] 	Another singleton version selected: org.eclipse.birt.report.data.oda.jdbc.dbprofile_2.5.1.v20090821
[eclipse.generateFeature] Bundle org.eclipse.birt.report.data.bidi.utils.ui:

(lots of...)

[eclipse.generateFeature] Bundle org.eclipse.xsd.mapping.editor:
[eclipse.generateFeature] 	Another singleton version selected: org.eclipse.xsd.mapping.editor_2.5.0.v200906151043
  [antcall] Exiting /u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml.
BUILD FAILED
/u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml:36: The following error occurred while executing this line:
/u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml:64: java.lang.IllegalArgumentException: invalid format
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:622)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:494)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
	at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: /u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml:64: java.lang.IllegalArgumentException: invalid format
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
	... 35 more
Caused by: java.lang.IllegalArgumentException: invalid format
	at org.osgi.framework.Version.<init>(Version.java:147)
	at org.eclipse.pde.internal.build.Utils.createVersionRange(Utils.java:103)
	at org.eclipse.pde.internal.build.site.BuildTimeSite.findFeature(BuildTimeSite.java:254)
	at org.eclipse.pde.internal.build.FeatureGenerator.createFeature(FeatureGenerator.java:405)
	at org.eclipse.pde.internal.build.FeatureGenerator.generate(FeatureGenerator.java:147)
	at org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.run(FeatureGeneratorTask.java:53)
	at org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.execute(FeatureGeneratorTask.java:35)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	... 43 more
--- Nested Exception ---
/u/guiteam/builder/eclipse/plugins/org.eclipse.pde.build_3.5.1.R35x_20090820/scripts/productBuild/productBuild.xml:64: java.lang.IllegalArgumentException: invalid format
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:622)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:494)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
	at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.IllegalArgumentException: invalid format
	at org.osgi.framework.Version.<init>(Version.java:147)
	at org.eclipse.pde.internal.build.Utils.createVersionRange(Utils.java:103)
	at org.eclipse.pde.internal.build.site.BuildTimeSite.findFeature(BuildTimeSite.java:254)
	at org.eclipse.pde.internal.build.FeatureGenerator.createFeature(FeatureGenerator.java:405)
	at org.eclipse.pde.internal.build.FeatureGenerator.generate(FeatureGenerator.java:147)
	at org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.run(FeatureGeneratorTask.java:53)
	at org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.execute(FeatureGeneratorTask.java:35)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	... 43 more
--- Nested Exception ---
java.lang.IllegalArgumentException: invalid format
	at org.osgi.framework.Version.<init>(Version.java:147)
	at org.eclipse.pde.internal.build.Utils.createVersionRange(Utils.java:103)
	at org.eclipse.pde.internal.build.site.BuildTimeSite.findFeature(BuildTimeSite.java:254)
	at org.eclipse.pde.internal.build.FeatureGenerator.createFeature(FeatureGenerator.java:405)
	at org.eclipse.pde.internal.build.FeatureGenerator.generate(FeatureGenerator.java:147)
	at org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.run(FeatureGeneratorTask.java:53)
	at org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask.execute(FeatureGeneratorTask.java:35)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:622)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:494)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
	at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


I didn't paste the whole log because it's quite long.
I guess the content of the build.properties file can be useful too:

product=${stworkbenchSourceDir}/plugins/com.st.stworkbench.product/stw.product

runPackager=true
allowBinaryCycles=true

archivePrefix=eclipse
collectingFolder=${archivePrefix}

configs=win32, win32, x86 & linux, gtk, x86

zipargs=
tarargs=

buildDirectory=${stworkbenchSourceDir}
buildType=I
buildId=stworkbench
buildLabel=${buildType}.${buildId}
timestamp=007

baseLocation=${base}/eclipse
baseos=linux
basews=gtk
basearch=x86

skipBase=true
eclipseURL=<url for eclipse download site>
eclipseBuildId=<Id of Eclipse build to get>
eclipseBaseURL=${eclipseURL}/eclipse-platform-${eclipseBuildId}-win32.zip

skipMaps=true
mapsRepo=:pserver:anonymous@example.com/path/to/repo
mapsRoot=path/to/maps
mapsCheckoutTag=HEAD
mapsTagTag=v${buildId}

skipFetch=true

logExtension=.log

javacDebugInfo=false 
javacFailOnError=true
javacVerbose=true
javacSource=1.6
javacTarget=1.6


flattenDependencies=true
p2.gathering=true

p2.build.repo=file:${buildDirectory}/buildRepo
generate.p2.metadata=true
p2.metadata.repo=file:${buildDirectory}/repo
p2.artifact.repo=file:${buildDirectory}/repo
p2.metadata.repo.name=MetaRepo
p2.artifact.repo.name=ArtifactRepo
p2.flavor=tooling
p2.product.qualifier=${buildId}
p2.publish.artifacts=true
transformedRepoLocation=${base}/eclipse/transformed
p2.director.log=${base}/eclipse/DirectorLog
p2.director.profile=stworkbench


Feel free to ask for any further detail.

Regards,
Giuseppe.
Re: Headless build fails generating an exception [message #507680 is a reply to message #507507] Thu, 14 January 2010 11:11 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 755
Registered: July 2009
Location: Grenoble, France
Senior Member
Hello Giuseppe,

Your problem may come from the version you set in your .product. When using a p2-build, this version must be OSGi-friendly, that means it has to be something like 1.0.0.qualifier. Otherwise, p2 does not succeed to create an installation unit for your application.

Hope that helps

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Headless build fails generating an exception [message #507717 is a reply to message #507680] Thu, 14 January 2010 13:15 Go to previous messageGo to next message
Giuseppe Montalto is currently offline Giuseppe Montalto
Messages: 18
Registered: July 2009
Junior Member
Hi!

thanks for the suggestion, but that didn't solve the problem.

in my .product:
<product name="STWorkbench" id="com.st.platform.st_ide" application="com.st.platform.STWApplication" version="5.0.0" useFeatures="true">

both version="5.0.0" and version="5.0.0.qualifier" produce the same exception.

I was suspecting something related to org.eclipse.pde.internal.build.Utils.createVersionRange(Util s.java:103) but I haven't find a way to troubleshoot it yet.

Ciao,
Giuseppe.

Mickael Istria wrote on Thu, 14 January 2010 06:11
Hello Giuseppe,

Your problem may come from the version you set in your .product. When using a p2-build, this version must be OSGi-friendly, that means it has to be something like 1.0.0.qualifier. Otherwise, p2 does not succeed to create an installation unit for your application.

Hope that helps

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php

Re: Headless build fails generating an exception [message #507994 is a reply to message #507717] Fri, 15 January 2010 13:27 Go to previous messageGo to next message
Giuseppe Montalto is currently offline Giuseppe Montalto
Messages: 18
Registered: July 2009
Junior Member
fixed!

The problem was caused by:

  • a bad (i.e. non existing) path in the build.properties file
  • malformed tags in the .product file


Now the plugins are built and the build reaches the runDirector step...which fails! Confused

This is another problem, anyway:
while checking the jars' signature, the Director complains about a file being tampered.

Indeed I was aware of that, because I explicitly edited that file...is there any option to turn off jar signature checking, either from the command line or through the build.properties?

incidentally, I think that there should be a better way to report build errors, rather than generating java exceptions... Smile

Ciao.
Re: Headless build fails generating an exception [message #509223 is a reply to message #507994] Thu, 21 January 2010 17:19 Go to previous messageGo to next message
Giuseppe Montalto is currently offline Giuseppe Montalto
Messages: 18
Registered: July 2009
Junior Member
Giuseppe Montalto wrote on Fri, 15 January 2010 08:27

while checking the jars' signature, the Director complains about a file being tampered.



fixed that one too, by simply...removing the signature info from that plugin and feature. Cool

Now, the next error is...
Property "p2.gathering" has not been set
Condition false; not setting p2.publish.parts

and so I end up with an update site, instead of a product. Mad

I do actually set
p2.gathering=true
in the build.properties file and, more or less at the beginning of the log, I see:
[property ]Loading /right/path/to/my/build.properties
.
.
Setting project property: p2.gathering -> true


Incidentally, the log is 275.000+ lines long, so it isn't that much easy to manage it!

any hint about that?

[Updated on: Thu, 21 January 2010 17:20]

Report message to a moderator

Re: Headless build fails generating an exception [message #604154 is a reply to message #507680] Thu, 14 January 2010 13:15 Go to previous messageGo to next message
Giuseppe Montalto is currently offline Giuseppe Montalto
Messages: 18
Registered: July 2009
Junior Member
Hi!

thanks for the suggestion, but that didn't solve the problem.

in my .product:
<product name="STWorkbench" id="com.st.platform.st_ide" application="com.st.platform.STWApplication" version="5.0.0" useFeatures="true">
both version="5.0.0" and version="5.0.0.qualifier" produce the same exception.

I was suspecting something related to org.eclipse.pde.internal.build.Utils.createVersionRange(Util s.java:103) but I haven't find a way to troubleshoot it yet.

Ciao,
Giuseppe.

Mickael Istria wrote on Thu, 14 January 2010 06:11
> Hello Giuseppe,
>
> Your problem may come from the version you set in your .product. When using a p2-build, this version must be OSGi-friendly, that means it has to be something like 1.0.0.qualifier. Otherwise, p2 does not succeed to create an installation unit for your application.
>
> Hope that helps
>
> --
> Mickael Istria - BonitaSoft S.A.
> http://www.bonitasoft.com/products/downloads.php
Re: Headless build fails generating an exception [message #604182 is a reply to message #604154] Fri, 15 January 2010 13:27 Go to previous messageGo to next message
Giuseppe Montalto is currently offline Giuseppe Montalto
Messages: 18
Registered: July 2009
Junior Member
fixed!

The problem was caused by:

a bad (i.e. non existing) path in the build.properties file
malformed tags in the .product file


Now the plugins are built and the build reaches the runDirector step...which fails! :?

This is another problem, anyway:
while checking the jars' signature, the Director complains about a file being tampered.

Indeed I was aware of that, because I explicitly edited that file...is there any option to turn off jar signature checking, either from the command line or through the build.properties?

incidentally, I think that there should be a better way to report build errors, rather than generating java exceptions... :)

Ciao.
Re: Headless build fails generating an exception [message #604315 is a reply to message #604182] Thu, 21 January 2010 17:19 Go to previous message
Giuseppe Montalto is currently offline Giuseppe Montalto
Messages: 18
Registered: July 2009
Junior Member
Giuseppe Montalto wrote on Fri, 15 January 2010 08:27
> while checking the jars' signature, the Director complains about a file being tampered.


fixed that one too, by simply...removing the signature info from that plugin and feature. 8)

Now, the next error is...
Property "p2.gathering" has not been set
Condition false; not setting p2.publish.parts
and SO I end up with an update site, instead of a product. :x

I do actually set p2.gathering=true in the build.properties file and, more or less at the beginning of the log, I see: [property ]Loading /right/path/to/my/build.properties
Previous Topic:Headless PDE build fails for platform specific plugins
Next Topic:Unable to install plugin
Goto Forum:
  


Current Time: Wed Sep 17 19:53:54 GMT 2014

Powered by FUDForum. Page generated in 0.03417 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software