Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Buckminster 3.6: URI is not hierarchical(+hudson)
Buckminster 3.6: URI is not hierarchical [message #545023] Tue, 06 July 2010 12:43 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 756
Registered: July 2009
Senior Member
I am getting the following error when using buckminster 3.6 in hudson... If I switch back to 3.5 this will not happen.
Note: that error message comes when the rcp is being packaged (create.product is being called)....

!ENTRY org.eclipse.equinox.p2.engine 4 1002 2010-07-06 13:51:00.371
!MESSAGE URI is not hierarchical
!STACK 0
java.lang.IllegalArgumentException: URI is not hierarchical
at java.io.File.<init>(File.java:335)
at org.eclipse.equinox.internal.p2.engine.ProfileMetadataReposi tory.getProfile(ProfileMetadataRepository.java:174)
at org.eclipse.equinox.internal.p2.engine.ProfileMetadataReposi tory. <init>(ProfileMetadataRepository.java:49)
at org.eclipse.equinox.internal.p2.engine.ProfileMetadataReposi toryFactory.load(ProfileMetadataRepositoryFactory.java:36)
at org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.factoryLoad(MetadataRepositoryManager.java :57)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractR epositoryManager.loadRepository(AbstractRepositoryManager.ja va:747)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractR epositoryManager.loadRepository(AbstractRepositoryManager.ja va:652)
at org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.loadRepository(MetadataRepositoryManager.j ava:96)
at org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.loadRepository(MetadataRepositoryManager.j ava:92)
at org.eclipse.equinox.internal.p2.director.app.DirectorApplica tion.initializeRepositories(DirectorApplication.java:407)
at org.eclipse.equinox.internal.p2.director.app.DirectorApplica tion.run(DirectorApplication.java:796)
at org.eclipse.equinox.internal.p2.director.app.DirectorApplica tion.start(DirectorApplication.java:954)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

!ENTRY org.eclipse.equinox.p2.core 4 0 2010-07-06 13:51:00.387
!MESSAGE Unable to load repositories.
Re: Buckminster 3.6: URI is not hierarchical [message #545092 is a reply to message #545023] Tue, 06 July 2010 15:21 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi Erdal,

does your product.ant look similar to the mailapp example?

<target name="create.product">
<property name="destination" location="${sp:destination}"/>
<delete dir="${destination}"></delete>
<makeurl property="repository" file="${sp:repository}"/>
<mkdir dir="${destination}"/>
<echoproperties ></echoproperties>
<echo message="${equinox.launcher.jar}"/>
<echo message="${repository}"/>
<echo message="${destination}"/>
<java jar="${equinox.launcher.jar}" fork="true" failonerror="true"
output="../directorOut.txt">
<arg value="-consoleLog"/>
<arg value="-application"/>
<arg value="org.eclipse.equinox.p2.director"/>
<arg value="-artifactRepository"/>
<arg value="file:${repository}"/>

....

If so, note this line:

<makeurl property="repository" file="${sp:repository}"/>
And later:
<arg value="file:${repository}"/>
So you will end with something like this:
file:file:/here/goes/your/path

The p2 Director didn't complain about that in 3.5, but does in 3.6.
Just get rid of the extra 'file:' in front of the ${repository}

Hope that helps and best regards,
Johannes
Re: Buckminster 3.6: URI is not hierarchical [message #545172 is a reply to message #545092] Tue, 06 July 2010 22:24 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1340
Registered: July 2009
Senior Member
Please see below..

Johannes Utzig wrote on Tue, 06 July 2010 11:21
Hi Erdal,

does your product.ant look similar to the mailapp example?

<target name="create.product">
<property name="destination" location="${sp:destination}"/>
<delete dir="${destination}"></delete>
<makeurl property="repository" file="${sp:repository}"/>
<mkdir dir="${destination}"/>
<echoproperties ></echoproperties>
<echo message="${equinox.launcher.jar}"/>
<echo message="${repository}"/>
<echo message="${destination}"/>
<java jar="${equinox.launcher.jar}" fork="true" failonerror="true"
output="../directorOut.txt">
<arg value="-consoleLog"/>
<arg value="-application"/>
<arg value="org.eclipse.equinox.p2.director"/>
<arg value="-artifactRepository"/>
<arg value="file:${repository}"/>

....

If so, note this line:

<makeurl property="repository" file="${sp:repository}"/>
And later:
<arg value="file:${repository}"/>
So you will end with something like this:
file:file:/here/goes/your/path

The p2 Director didn't complain about that in 3.5, but does in 3.6.
Just get rid of the extra 'file:' in front of the ${repository}

Hope that helps and best regards,
Johannes


That worked for me -- I had to change it in two places. But can we please get this fixed in SVN so that people can use the example in Helios without having problems?

Re: Buckminster 3.6: URI is not hierarchical [message #545378 is a reply to message #545023] Wed, 07 July 2010 14:59 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 756
Registered: July 2009
Senior Member
Thanks! Now I can create the product using 3.6 Smile

Though, as Miles said, you have to modify both artifactRepository and metadataRepository params:

<arg value="-artifactRepository"/>
<arg value="${repository}"/>
<arg value="-metadataRepository"/>
<arg value="${repository}"/>
Re: Buckminster 3.6: URI is not hierarchical [message #545414 is a reply to message #545172] Wed, 07 July 2010 16:50 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi Miles

>
> That worked for me -- I had to change it in two places. But can we
> please get this fixed in SVN so that people can use the example in
> Helios without having problems?
>
>

I'll fix this as soon as I'm back at home. Would you or Erdal mind
logging a bugzilla for this in the mean time?

Best regards,
Johannes
Re: Buckminster 3.6: URI is not hierarchical [message #545433 is a reply to message #545414] Wed, 07 July 2010 18:18 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1340
Registered: July 2009
Senior Member
Johannes Utzig wrote on Wed, 07 July 2010 12:50

I'll fix this as soon as I'm back at home. Would you or Erdal mind
logging a bugzilla for this in the mean time?



Here you are -- includes the patch..

https://bugs.eclipse.org/bugs/show_bug.cgi?id=319172
Previous Topic:Migrating source builds from PDE, product issue
Next Topic:certificate problems running buckminster headless for an rcp app
Goto Forum:
  


Current Time: Fri Dec 19 12:21:18 GMT 2014

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

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