Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL: Standalone example not working
EVL: Standalone example not working [message #1738903] Mon, 25 July 2016 21:30 Go to next message
Nicolas   is currently offline Nicolas Friend
Messages: 38
Registered: October 2014
Member
Hey guys,

I've being trying to run the EVL standalone example:

https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/plain/examples/org.eclipse.epsilon.examples.standalone/src/org/eclipse/epsilon/examples/standalone/evl/

But I always have some null pointer at the method: getFileURI.

Are those scripts already upgraded for 1.3? Or there is something that I'd be doing wrong. I've checked and both the metamodels and model exist.
Re: EVL: Standalone example not working [message #1738934 is a reply to message #1738903] Tue, 26 July 2016 08:38 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1586
Registered: July 2009
Location: York, UK
Senior Member

Hi Nicolas,

This seems to be working fine with the latest interim version of Epsilon. Which expression in the method produces the NPE?

Cheers,
Dimitris
Re: EVL: Standalone example not working [message #1738988 is a reply to message #1738934] Tue, 26 July 2016 14:58 Go to previous messageGo to next message
Nicolas   is currently offline Nicolas Friend
Messages: 38
Registered: October 2014
Member
I've got this error: Exception in thread "main" java.lang.NullPointerException

On line:

URI binUri = EpsilonStandaloneExample.class.
getResource(fileName).toURI();

I've checked and files are there, the portion of code that is calling that method is:

https://www.dropbox.com/s/18pgdbdujcvif7d/Captura%20de%20pantalla%202016-07-26%2009.57.10.png?dl=0

And here's how i've my workspace:

https://www.dropbox.com/s/zk06g718chmyiie/Captura%20de%20pantalla%202016-07-26%2009.57.00.png?dl=0

Thanks in advance! Smile
Re: EVL: Standalone example not working [message #1739228 is a reply to message #1738988] Thu, 28 July 2016 14:58 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1586
Registered: July 2009
Location: York, UK
Senior Member

Hi Nicolas,

This is probably due to the location of ETL.ecore. createEmfModel expects relative paths of files under org.eclipse.epsilon.examples.standalone/src/org/eclipse/epsilon/examples/standalone, which I guess is not the case for this metamodel.

Cheers,
Dimitris
Previous Topic:There is a selectFirst method on ETL?
Next Topic:XMI to HUTN bridge
Goto Forum:
  


Current Time: Sat Sep 22 14:32:41 GMT 2018

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

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

Back to the top