Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[buckminster-dev] Running Buckminster via java -jar fails to import with JDK 1.5

Hi,

I'm setting up a hudson build for our RCP app and stumbled over this in the cause of doing so. I'd like to use a 1.5 JDK that hudson should download from Sun's/Oracle's site as our RCP targets java 1.5. Hudson's buckminster plugin downloads Buckminster too (3.5 or 3.6 have the same problem), so I have .hudson/tools/bucky_download/buckminster with buckminster 3.6 and
hudson/tools/1.5_JDK/ with the JDK.

Unfortunately the way the Hudson-Buckminster plugin runs buckminster causes it to fail importing the workspace, it aborts after some time with:

ERROR: An internal error occurred during: "Installing".
java.lang.IllegalArgumentException: Resolution not created using LocalReader
	at org.eclipse.buckminster.core.reader.LocalReaderType.getFixedLocation(LocalReaderType.java:50)
	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.getMaterialization(WorkspaceMaterializer.java:68)
	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.createBindSpec(WorkspaceMaterializer.java:241)
	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.performInstallAction(WorkspaceMaterializer.java:198)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:164)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.performInstallActions(AbstractMaterializer.java:68)
	at org.eclipse.buckminster.core.materializer.InstallerJob.runInWorkspace(InstallerJob.java:52)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
INFO:  Import complete.


I can reproduce this by executing the same commandline from a terminal:

/home/andreas/.hudson/tools/1.5_JDK/bin/java -Dbuckminster.output.root=/home/andreas/.hudson/jobs/rcp/workspace/buckminster.output -Dbuckminster.temp.root=/home/andreas/.hudson/jobs/rcp/workspace/buckminster.temp -jar /home/andreas/.hudson/tools/bucky_download/buckminster/plugins/org.eclipse.equinox.launcher_1.1.0.v20100419.jar -application org.eclipse.buckminster.cmdline.headless -data /home/andreas/.hudson/jobs/rcp/workspace --loglevel info setpref targetPlatformPath="/home/andreas/.hudson/jobs/rcp_target/builds/2010-05-07_17-18-06/archive/targetPlatform"

/home/andreas/.hudson/tools/1.5_JDK/bin/java -Dbuckminster.output.root=/home/andreas/.hudson/jobs/rcp/workspace/buckminster.output -Dbuckminster.temp.root=/home/andreas/.hudson/jobs/rcp/workspace/buckminster.temp -jar /home/andreas/.hudson/tools/bucky_download/buckminster/plugins/org.eclipse.equinox.launcher_1.1.0.v20100419.jar -application org.eclipse.buckminster.cmdline.headless -data /home/andreas/.hudson/jobs/rcp/workspace --loglevel info import '/home/andreas/.hudson/jobs/rcp/workspace//com.froglogic.squish.ide.bucky/site.cquery'


If I replace in the above code the java-execution with running the buckminster shell script (and removing the -jar argument) then it works just fine. No idea why that makes a difference.
Also using a JDK 1.6 < Update 19 (due to the certificate problems) the java-invocation version works just fine. I'd really like to use a 1.5 JDK as we've had some problems with Eclipse accepting 1.6 code even though we tried to set 1.5 source compliance everywhere.


Back to the top