Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » URI is not Hierarchical
URI is not Hierarchical [message #1088076] Fri, 16 August 2013 14:48 Go to next message
Kosala Yapa is currently offline Kosala YapaFriend
Messages: 159
Registered: September 2010
Senior Member
Hi there,

I have model/model.ecore in "" plugin.

Now I need to read this model.ecore in my test plugin, which is "". I am using the following code.

5: url = new URL("platform:/plugin/" + "" + "model/model.ecore");
6: file = new File(FileLocator.resolve(url).toURI());
String filePath = file.getAbsolutePath();

Now this filePath is used to read model.ecore file. When I launch Junit Plugin Test, I can run all test cases without any problem in my PC. Those test cases need model.ecore.

Problem: After doing a build, I do run automated tests in the build machine. When I check test results, I can see an error "URI is not Hierarchical" pointing to line 6. IMO, error comes at toURI() conversion.

Any help is highly appreciated.


[Updated on: Fri, 16 August 2013 14:49]

Report message to a moderator

Re: URI is not Hierarchical [message #1088080 is a reply to message #1088076] Fri, 16 August 2013 14:52 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 417
Registered: July 2009
Senior Member

Hi Kosala,

Best guess: You are running in RCP mode when you do the local Junit test but you do NOT run in eclipse on the build machine.

Best regards,


[Updated on: Fri, 16 August 2013 14:52]

Report message to a moderator

Previous Topic:How to implement Switch Workspace in Eclipse 4 / Eclipse RCP
Next Topic:Features not showing Icons
Goto Forum:

Current Time: Thu May 24 12:22:38 GMT 2018

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

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

Back to the top