Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » NullPointerException at org.eclipse.epsilon.emc.emf
NullPointerException at org.eclipse.epsilon.emc.emf [message #505588] Sat, 02 January 2010 15:16 Go to next message
Itamar is currently offline Itamar
Messages: 39
Registered: November 2009
Member
I checked out the standalone examples ( http://eclipse.org/gmt/epsilon/examples/index.php?example=or g.eclipse.epsilon.examples.standalone),
tried to run
org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUmlExample
(right-click, Run As, Java Application),
and got:
http://www.eclipse.org/uml2/3.0.0/UML
Exception in thread "main" java.lang.NullPointerException
	at org.eclipse.epsilon.emc.emf.EmfModelResourceFactory.createResource(EmfModelResourceFactory.java:47)
	at org.eclipse.epsilon.emc.emf.EmfModelResourceSet.createResource(EmfModelResourceSet.java:23)
	at org.eclipse.epsilon.emc.emf.EmfModel.loadModel(EmfModel.java:181)
	at org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:96)
	at org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:90)
	at org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExample.createEmfModelByURI(EpsilonStandaloneExample.java:92)
	at org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUmlExample.getModels(EolStandaloneUmlExample.java:29)
	at org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExample.execute(EpsilonStandaloneExample.java:55)
	at org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUmlExample.main(EolStandaloneUmlExample.java:16)


Any idea why?
Thanks Smile
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #505591 is a reply to message #505588] Sat, 02 January 2010 15:52 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Itamar,

Could you please update from SVN and give it another go? (line 47
appears to be empty in the current version of EmfModelResourceFactory.java).

Cheers,
Dimitris

Itamar wrote:
> I checked out the standalone examples
> ( http://eclipse.org/gmt/epsilon/examples/index.php?example=or g.eclipse.epsilon.examples.standalone),
>
> tried to run
> org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUml Example
> (right-click, Run As, Java Application),
> and got:
>
> http://www.eclipse.org/uml2/3.0.0/UML
> Exception in thread "main" java.lang.NullPointerException
> at
> org.eclipse.epsilon.emc.emf.EmfModelResourceFactory.createRe source(EmfModelResourceFactory.java:47)
>
> at
> org.eclipse.epsilon.emc.emf.EmfModelResourceSet.createResour ce(EmfModelResourceSet.java:23)
>
> at org.eclipse.epsilon.emc.emf.EmfModel.loadModel(EmfModel.java :181)
> at org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:96)
> at org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:90)
> at
> org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExa mple.createEmfModelByURI(EpsilonStandaloneExample.java:92)
>
> at
> org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUml Example.getModels(EolStandaloneUmlExample.java:29)
>
> at
> org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExa mple.execute(EpsilonStandaloneExample.java:55)
>
> at
> org.eclipse.epsilon.examples.standalone.eol.EolStandaloneUml Example.main(EolStandaloneUmlExample.java:16)
>
>
>
> Any idea why?
> Thanks :)


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #505600 is a reply to message #505591] Sat, 02 January 2010 19:41 Go to previous messageGo to next message
Itamar is currently offline Itamar
Messages: 39
Registered: November 2009
Member
I just reinstalled my Eclipse and Epsilon -- all to the latest version (0.8.8 of Epsilon).
I also updated the examples from the SVN repo. (or did you mean I should download Epsilon from SVN?)

Still exactly the same exception.
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #505850 is a reply to message #505600] Tue, 05 January 2010 11:05 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Could you please give it a go with the latest interim version?

Cheers,
Dimitris

Itamar wrote:
> I just reinstalled my Eclipse and Epsilon -- all to the latest version
> (0.8.8 of Epsilon).
> I also updated the examples from the SVN repo. (or did you mean I should
> download Epsilon from SVN?)
>
> Still exactly the same exception.


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #506103 is a reply to message #505850] Wed, 06 January 2010 07:52 Go to previous messageGo to next message
Itamar is currently offline Itamar
Messages: 39
Registered: November 2009
Member
Sorry for the newbie question.. but is there any way to temporarily disable the 0.8.8 version? Or should I remove it completely before trying the interim version?
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #506171 is a reply to message #506103] Wed, 06 January 2010 12:42 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
I'd install the interim version on top of the one you have now.

Cheers,
Dimitris

Itamar wrote:
> Sorry for the newbie question.. but is there any way to temporarily
> disable the 0.8.8 version? Or should I remove it completely before
> trying the interim version?


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
icon14.gif  Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #506242 is a reply to message #506171] Wed, 06 January 2010 16:40 Go to previous messageGo to next message
Itamar is currently offline Itamar
Messages: 39
Registered: November 2009
Member
Yes. It works Smile
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #584272 is a reply to message #505591] Sat, 02 January 2010 19:41 Go to previous messageGo to next message
Itamar is currently offline Itamar
Messages: 39
Registered: November 2009
Member
I just reinstalled my Eclipse and Epsilon -- all to the latest version (0.8.8 of Epsilon).
I also updated the examples from the SVN repo. (or did you mean I should download Epsilon from SVN?)

Still exactly the same exception.
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #584329 is a reply to message #584272] Tue, 05 January 2010 11:05 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Could you please give it a go with the latest interim version?

Cheers,
Dimitris

Itamar wrote:
> I just reinstalled my Eclipse and Epsilon -- all to the latest version
> (0.8.8 of Epsilon).
> I also updated the examples from the SVN repo. (or did you mean I should
> download Epsilon from SVN?)
>
> Still exactly the same exception.


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #584367 is a reply to message #505850] Wed, 06 January 2010 07:52 Go to previous messageGo to next message
Itamar is currently offline Itamar
Messages: 39
Registered: November 2009
Member
Sorry for the newbie question.. but is there any way to temporarily disable the 0.8.8 version? Or should I remove it completely before trying the interim version?
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #584429 is a reply to message #584367] Wed, 06 January 2010 12:42 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
I'd install the interim version on top of the one you have now.

Cheers,
Dimitris

Itamar wrote:
> Sorry for the newbie question.. but is there any way to temporarily
> disable the 0.8.8 version? Or should I remove it completely before
> trying the interim version?


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: NullPointerException at org.eclipse.epsilon.emc.emf [message #584481 is a reply to message #506171] Wed, 06 January 2010 16:40 Go to previous message
Itamar is currently offline Itamar
Messages: 39
Registered: November 2009
Member
Yes. It works :)
Previous Topic:Performing validation whenever a diagram is saved
Next Topic:Accessing a "guard" field in a model
Goto Forum:
  


Current Time: Sat Oct 25 12:58:51 GMT 2014

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

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