Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Incorrect access to model in ubuntu
Incorrect access to model in ubuntu [message #584620] Tue, 12 January 2010 04:28 Go to next message
Raul  is currently offline Raul Friend
Messages: 14
Registered: November 2009
Junior Member
Hi, I am trying to validate a model using evl in Ubuntu 9.04 and Eclipse Galileo. When validating I get a message that says

Resource 'xxx' does not exist. (xxx is a file path)

The file exists and debugging the execution I found that in the class EmfModel the instruction this.modelFileUri = EmfUtil.createURI(modelFile); returns the URI with "platform:/resource" before the valid path.
Inside the method createURI() I see that these lines are commented:

// Handle paths that start with / under Unix e.g. /local/foo.txt
//else if (OperatingSystem.isUnix() && s.startsWith("/")) {
// return URI.createFileURI(s);
//}

Could be my problem because that?

Best regards,
Raul
Re: Incorrect access to model in ubuntu [message #584639 is a reply to message #584620] Tue, 12 January 2010 09:42 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Raul,

Are you launching the validation through the UI or through Java code?

Cheers,
Dimitris

Raul wrote:
> Hi, I am trying to validate a model using evl in Ubuntu 9.04 and Eclipse
> Galileo. When validating I get a message that says
> Resource 'xxx' does not exist. (xxx is a file path)
>
> The file exists and debugging the execution I found that in the class
> EmfModel the instruction this.modelFileUri =
> EmfUtil.createURI(modelFile); returns the URI with "platform:/resource"
> before the valid path. Inside the method createURI() I see that these
> lines are commented:
>
> // Handle paths that start with / under Unix e.g. /local/foo.txt
> //else if (OperatingSystem.isUnix() && s.startsWith("/")) {
> // return URI.createFileURI(s);
> //}
>
> Could be my problem because that?
>
> Best regards,
> Raul
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Incorrect access to model in ubuntu [message #584661 is a reply to message #584639] Tue, 12 January 2010 10:31 Go to previous messageGo to next message
Hector is currently offline HectorFriend
Messages: 20
Registered: July 2009
Junior Member
Hi Dimitrios,

I am working with Raul in the same project. The validation is launched through java code.

Best regards,
Hector
Re: Incorrect access to model in ubuntu [message #584667 is a reply to message #584661] Tue, 12 January 2010 10:35 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

To be on the safe side when loading EMF models from Java, you should use
the complete URI (e.g. file:/foo/bar.model,
platform:/resource/foo/bar.model)

Cheers,
Dimitris

H wrote:
> Hi Dimitrios,
>
> I am working with Raul in the same project. The validation is launched
> through java code.
>
> Best regards,
> Hector


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:Problem calling Native java code
Next Topic:Incorrect access to model in ubuntu
Goto Forum:
  


Current Time: Fri Apr 19 17:10:37 GMT 2024

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

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

Back to the top