Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Problem to run basic epsilon examples
icon4.gif  Problem to run basic epsilon examples [message #509836] Mon, 25 January 2010 10:09 Go to next message
No real name is currently offline No real name
Messages: 6
Registered: January 2010
Junior Member
Hello,

I downloaded the "Tree2Graph" example and tried to run it with Epsilon plugin for Eclipse, but it did not work.

here is the error I get when I try to launch :

java.lang.NullPointerException
	at org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:95)
	at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238)
	at org.eclipse.epsilon.eol.AbstractModule.invokeMainRule(AbstractModule.java:182)
	at org.eclipse.epsilon.eol.AbstractModule.parse(AbstractModule.java:142)
	at org.eclipse.epsilon.etl.dt.launching.EtlLaunchConfigurationDelegate.launch(EtlLaunchConfigurationDelegate.java:48)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


I have eclipse 3.5, with java jdk 1.6 on Linux.

I also tried other examples (OO2DB) but I always get the same error.

I'll be very grateful if someone could help me out!
Thanks !

Boris.

Re: Problem to run basic epsilon examples [message #509850 is a reply to message #509836] Mon, 25 January 2010 10:31 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

I've seen similar exceptions occur when the file specified in the launch
configuration doesn't exist. Did you follow the instructions in the "Get
it!" tab in
http://www.eclipse.org/gmt/epsilon/examples/index.php?exampl e=org.eclipse.epsilon.examples.tree2graph
precisely?

Cheers,
Dimitris

borislucas@wanadoo.fr wrote:
> Hello,
> I downloaded the "Tree2Graph" example and tried to run it with Epsilon
> plugin for Eclipse, but it did not work.
>
> here is the error I get when I try to launch :
>
> java.lang.NullPointerException
> at
> org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenSt ream.java:95)
> at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.jav a:238)
> at
> org.eclipse.epsilon.eol.AbstractModule.invokeMainRule(Abstra ctModule.java:182)
>
> at
> org.eclipse.epsilon.eol.AbstractModule.parse(AbstractModule. java:142)
> at
> org.eclipse.epsilon.etl.dt.launching.EtlLaunchConfigurationD elegate.launch(EtlLaunchConfigurationDelegate.java:48)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:853)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:703)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:866)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1069)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> I have eclipse 3.5, with java jdk 1.6 on Linux.
>
> I also tried other examples (OO2DB) but I always get the same error.
>
> I'll be very grateful if someone could help me out!
> Thanks !
>
> Boris.
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Problem to run basic epsilon examples [message #511377 is a reply to message #509850] Mon, 01 February 2010 08:22 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 6
Registered: January 2010
Junior Member
Thank you for your answer, I tried it but it didn't change anything.

Does anyone have any other idea?

Boris
Re: Problem to run basic epsilon examples [message #511381 is a reply to message #511377] Mon, 01 February 2010 08:32 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Boris,

I'm afraid I can't reproduce this. I've followed the steps below

1. Download org.eclipse.epsilon.examples.tree2graph.zip
2. Download org.eclipse.epsilon.examples.metamodels.zip
3. extract them
4. import them into Eclipse as projects
5. right click on Tree.ecore and click "Register EPackages"
6. right click on Graph.ecore and click "Register EPackages"
7. right click on Tree2Graph.launch and select Run as->Tree2Graph

and the transformation appears to be running fine. Could you please
reproduce the steps above and let me know if the problem persists?

Cheers,
Dimitris

borislucas@wanadoo.fr wrote:
> Thank you for your answer, I tried it but it didn't change anything.
>
> Does anyone have any other idea?
>
> Boris


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Problem to run basic epsilon examples [message #511940 is a reply to message #511381] Wed, 03 February 2010 08:30 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 6
Registered: January 2010
Junior Member
I tried again with these very steps, it still doesn't work.

But I was thinking that maybe it is not normal that the metamodel part and the "tree2graph" part are separate in two different project, and thus the metamodels are not visible for "tree2graph"...?

But I suppose that's the purpose of "register package"...

Anyway , thanks again for taking time to help me!
Re: Problem to run basic epsilon examples [message #512050 is a reply to message #511940] Wed, 03 February 2010 13:01 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

That's strange! Just to make sure: are you working with the Eclipse
Modeling Distribution? If so, I can think of no other solution rather
than to have a live screensharing session via Yuuguu so that I can have
a look at this directly...

Cheers,
Dimitris

borislucas@wanadoo.fr wrote:
> I tried again with these very steps, it still doesn't work.
>
> But I was thinking that maybe it is not normal that the metamodel part
> and the "tree2graph" part are separate in two different project, and
> thus the metamodels are not visible for "tree2graph"...?
>
> But I suppose that's the purpose of "register package"...
>
> Anyway , thanks again for taking time to help me!


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Problem to run basic epsilon examples [message #585029 is a reply to message #509836] Mon, 25 January 2010 10:31 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

I've seen similar exceptions occur when the file specified in the launch
configuration doesn't exist. Did you follow the instructions in the "Get
it!" tab in
http://www.eclipse.org/gmt/epsilon/examples/index.php?exampl e=org.eclipse.epsilon.examples.tree2graph
precisely?

Cheers,
Dimitris

borislucas@wanadoo.fr wrote:
> Hello,
> I downloaded the "Tree2Graph" example and tried to run it with Epsilon
> plugin for Eclipse, but it did not work.
>
> here is the error I get when I try to launch :
>
> java.lang.NullPointerException
> at
> org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenSt ream.java:95)
> at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.jav a:238)
> at
> org.eclipse.epsilon.eol.AbstractModule.invokeMainRule(Abstra ctModule.java:182)
>
> at
> org.eclipse.epsilon.eol.AbstractModule.parse(AbstractModule. java:142)
> at
> org.eclipse.epsilon.etl.dt.launching.EtlLaunchConfigurationD elegate.launch(EtlLaunchConfigurationDelegate.java:48)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:853)
>
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:703)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:866)
>
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1069)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> I have eclipse 3.5, with java jdk 1.6 on Linux.
>
> I also tried other examples (OO2DB) but I always get the same error.
>
> I'll be very grateful if someone could help me out!
> Thanks !
>
> Boris.
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Problem to run basic epsilon examples [message #585454 is a reply to message #509850] Mon, 01 February 2010 08:22 Go to previous message
No real name is currently offline No real name
Messages: 6
Registered: January 2010
Junior Member
Thank you for your answer, I tried it but it didn't change anything.

Does anyone have any other idea?

Boris
Re: Problem to run basic epsilon examples [message #585466 is a reply to message #585454] Mon, 01 February 2010 08:32 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Boris,

I'm afraid I can't reproduce this. I've followed the steps below

1. Download org.eclipse.epsilon.examples.tree2graph.zip
2. Download org.eclipse.epsilon.examples.metamodels.zip
3. extract them
4. import them into Eclipse as projects
5. right click on Tree.ecore and click "Register EPackages"
6. right click on Graph.ecore and click "Register EPackages"
7. right click on Tree2Graph.launch and select Run as->Tree2Graph

and the transformation appears to be running fine. Could you please
reproduce the steps above and let me know if the problem persists?

Cheers,
Dimitris

borislucas@wanadoo.fr wrote:
> Thank you for your answer, I tried it but it didn't change anything.
>
> Does anyone have any other idea?
>
> Boris


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Problem to run basic epsilon examples [message #585636 is a reply to message #511381] Wed, 03 February 2010 08:30 Go to previous message
No real name is currently offline No real name
Messages: 6
Registered: January 2010
Junior Member
I tried again with these very steps, it still doesn't work.

But I was thinking that maybe it is not normal that the metamodel part and the "tree2graph" part are separate in two different project, and thus the metamodels are not visible for "tree2graph"...?

But I suppose that's the purpose of "register package"...

Anyway , thanks again for taking time to help me!
Re: Problem to run basic epsilon examples [message #585659 is a reply to message #585636] Wed, 03 February 2010 13:01 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

That's strange! Just to make sure: are you working with the Eclipse
Modeling Distribution? If so, I can think of no other solution rather
than to have a live screensharing session via Yuuguu so that I can have
a look at this directly...

Cheers,
Dimitris

borislucas@wanadoo.fr wrote:
> I tried again with these very steps, it still doesn't work.
>
> But I was thinking that maybe it is not normal that the metamodel part
> and the "tree2graph" part are separate in two different project, and
> thus the metamodels are not visible for "tree2graph"...?
>
> But I suppose that's the purpose of "register package"...
>
> Anyway , thanks again for taking time to help me!


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:[EUGENIA] Define link targets in list
Next Topic:How does synchronize gmfgen work?
Goto Forum:
  


Current Time: Wed Aug 20 12:44:49 EDT 2014

Powered by FUDForum. Page generated in 0.02736 seconds