[p2]Location must be absolute error although it is an absolute path [message #735033] |
Mon, 10 October 2011 17:18 |
|
Hi,
I'm trying to use p2 director to have a multi-platform product after a PDE build.
I'm using this called for each configuration:
<java classname="org.eclipse.equinox.launcher.Main" maxmemory="2048m" fork="true" failonerror="true">
<classpath>
<path id="launcher.path.id">
<fileset dir="${eclipse.base.platform}/plugins" includes="org.eclipse.equinox.launcher_*.jar"/>
</path>
</classpath>
<arg value="-application" />
<arg value="org.eclipse.equinox.p2.director" />
<arg value="-repository"/>
<arg value="${buildDirectory}/buildRepo"/>
<arg value="-bundlepool" />
<arg value="${baseLocation}/bundlepool" />
<arg value="-shared" />
<arg value="${baseLocation}/bundlepool/p2" />
<arg value="-installIU" />
<arg value="org.bonitasoft.studio.product" />
<arg value="-destination" />
<arg value="${baseLocation}/bundlepool/${conf}" />
<arg value="-profile" />
<arg value="BonitaStudio_${conf}" />
<arg value="-consoleLog" />
<jvmarg line="-Xms2048m -Xmx2048m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=pdeBuild.hprof"/>
</java>
And here is the error:
[java] !ENTRY org.eclipse.osgi 4 0 2011-10-10 19:00:51.100
[java] !MESSAGE Application error
[java] !STACK 1
[java] java.lang.IllegalArgumentException: Location must be absolute: /media/bonita/hudson/allInOne-p2/all-in-one/productBuildDirectory/build/buildRepo
[java] at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.checkValidLocation(AbstractRepositoryManager.java:737)
[java] at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.contains(AbstractRepositoryManager.java:249)
[java] at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.initializeRepositories(DirectorApplication.java:379)
[java] at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.run(DirectorApplication.java:796)
[java] at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.start(DirectorApplication.java:954)
[java] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
[java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
[java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
So as you see it complains that th epath i snot absolute although it is.
Does anyone have an idea?
Thanks by advance fo rany help
Regards,
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
|
|
Re: [p2]Location must be absolute error although it is an absolute path [message #1758732 is a reply to message #1758715] |
Sat, 01 April 2017 08:31 |
Ed Merks Messages: 33224 Registered: July 2009 |
Senior Member |
|
|
The code is calling this method: private URI checkValidLocation(URI location) {
if (location == null)
throw new IllegalArgumentException("Location cannot be null"); //$NON-NLS-1$
if (!location.isAbsolute())
throw new IllegalArgumentException("Location must be absolute: " + location); //$NON-NLS-1$
return location;
} and so is checking public boolean isAbsolute() {
return scheme != null;
} which of course is false, because your URI doesn't have a scheme. Wherever /var/lib/jenkins/jobs/testBuild/git is specified, it should use file:/var/lib/jenkins/jobs/testBuild/git/ instead.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03039 seconds