Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » ECL/EML example not working(Heterogeneous Model Merging)
ECL/EML example not working [message #532417] Sun, 09 May 2010 15:49 Go to next message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Hello Dimitrios,

This problem is similar to another one you were looking at:
http:// www.eclipse.org/forums/index.php?t=msg&th=161315&sta rt=0&
which does not seem to have been resolved, at least in the forum.

On Friday I did reinstalls of the latest Eclipse modeling package on two different Linux machines. Since then I have been trying to get the Heterogeneous Model Merging example to work on either.

Generally I get this error trace:
java.lang.NullPointerException
	at org.antlr.runtime.CommonTokenStream.fillBuffer
	at org.antlr.runtime.CommonTokenStream.LT
	at org.eclipse.epsilon.eol.AbstractModule.invokeMainRule
	at org.eclipse.epsilon.eol.AbstractModule.parse
	at org.eclipse.epsilon.eml.dt.launching.
            EmlLaunchConfigurationDelegate.launch
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch
	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


I say generally, because I actually did manage to get one successful run today. Thinking that changing the launch paths to use forward slashes was the secret, I tried the same thing from scratch only to find myself back at the above exception. Since then I have been unable to achieve any success, though I have downloaded and reinstalled the example numerous times.

Finally I tried running the ANT build that is part of the example with some modification: change "alias" to `alias` in the ECL, and remove the usematchtrace="eclMatchTrace" code from the compare and merge sections. Then, over the course of trying many other things the following rather bizarre pattern emerged:

1. Run the build:
Resource '/home/spokes/ExMerge/models/Source.model' does not exist.


2. Run the build:
Resource '/home/spokes/ExMerge/models/Vocabulary.model' does not exist.


3. Run the build:
Resource '/home/spokes/ExMerge/models/Source.model' does not exist.


4. Run the build:
Buildfile: /home/spokes/ExMerge/build.xml

loadModels:

compare:

merge:

disposeModels:
Resource '/home' does not exist.

Rinse, repeat. Same pattern every time. Note that I don't do anything between these steps. Also, step 4 doesn't actually ever change the Target.model file.

I don't expect you to answer for ANT, I only included that information in hopes that it helps you zero in on what's going on with Epsilon. Thanks for any help, I'm really keen on giving ECL a try.

--Steve
Re: ECL/EML example not working [message #532426 is a reply to message #532417] Sun, 09 May 2010 17:17 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Steve,

I'm afraid I can't reproduce this in my Windows box. I'll need to set up
Ubuntu using vmware and try to reproduce it there - but this will take
some time.

Cheers,
Dimitris

Stephen Barrett wrote:
> Hello Dimitrios,
>
> This problem is similar to another one you were looking at:
> http://www.eclipse.org/forums/index.php?t=msg&th=161315& amp;start=0&
> which does not seem to have been resolved, at least in the forum.
>
> On Friday I did reinstalls of the latest Eclipse modeling package on two
> different Linux machines. Since then I have been trying to get the
> Heterogeneous Model Merging example to work on either.
>
> Generally I get this error trace:
>
> java.lang.NullPointerException
> at org.antlr.runtime.CommonTokenStream.fillBuffer
> at org.antlr.runtime.CommonTokenStream.LT
> at org.eclipse.epsilon.eol.AbstractModule.invokeMainRule
> at org.eclipse.epsilon.eol.AbstractModule.parse
> at org.eclipse.epsilon.eml.dt.launching.
> EmlLaunchConfigurationDelegate.launch
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch
> at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch
> at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> I say generally, because I actually did manage to get one successful run
> today. Thinking that changing the launch paths to use forward slashes
> was the secret, I tried the same thing from scratch only to find myself
> back at the above exception. Since then I have been unable to achieve
> any success, though I have downloaded and reinstalled the example
> numerous times.
>
> Finally I tried running the ANT build that is part of the example with
> some modification: change "alias" to `alias` in the ECL, and remove the
> usematchtrace="eclMatchTrace" code from the compare and merge sections.
> Then, over the course of trying many other things the following rather
> bizarre pattern emerged:
>
> 1. Run the build:
> Resource '/home/spokes/ExMerge/models/Source.model' does not exist.
>
> 2. Run the build:
> Resource '/home/spokes/ExMerge/models/Vocabulary.model' does not exist.
>
> 3. Run the build:
> Resource '/home/spokes/ExMerge/models/Source.model' does not exist.
>
> 4. Run the build:
>
> Buildfile: /home/spokes/ExMerge/build.xml
>
> loadModels:
>
> compare:
>
> merge:
>
> disposeModels:
> Resource '/home' does not exist.
>
> Rinse, repeat. Same pattern every time. Note that I don't do anything
> between these steps. Also, step 4 doesn't actually ever change the
> Target.model file.
>
> I don't expect you to answer for ANT, I only included that information
> in hopes that it helps you zero in on what's going on with Epsilon.
> Thanks for any help, I'm really keen on giving ECL a try.
>
> --Steve
Re: ECL/EML example not working [message #532428 is a reply to message #532426] Sun, 09 May 2010 18:16 Go to previous messageGo to next message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Okay, thanks. I'll keep digging for more details.

Cheers,
--Steve
Re: ECL/EML example not working [message #532439 is a reply to message #532426] Sun, 09 May 2010 23:37 Go to previous messageGo to next message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Some interesting details:

I have now tried several other examples. Those that use EML, ECL, or EVL fail pretty much in the same way, i.e., when running the .launch file (after changing the source attribute of the configuration over to forward slashes) I get the same NullPointerException; while doing an ANT build (when there is a build.xml in the example) runs through the "fail on every model file before running successfully" pattern I noted in the first post. Additionally, it doesn't actually seem to create or alter anything.

All examples that use EOL however, seem to work fine for me. Scanning the source code, I see that the launch method of the various LaunchConfigurationDelegate classes put together the name of the Epsilon file to be run slightly differently than the method for the EOL launch does. And it is the path of this file that I have to change in the run configuration to use the Unix style slashes.

Beyond this point, I am over my head. So I will just have to wish you luck with it!
--Steve
Re: ECL/EML example not working [message #532496 is a reply to message #532439] Mon, 10 May 2010 05:39 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Steve,

I've reproduced this. To run the example through the launch
configuration you need to change all \ to / in the paths of the .ecl and
..eml files. You'll also need to check out the
org.eclipse.epsilon.examples.metamodels project from the examples folder
in the SVN and right-click DomainVocabulary.ecore and Entity.ecore and
select "Register EPackages". I'll have a look at ANT now. Could you
please file a bug report using the link below?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon

Cheers,
Dimitris

Stephen Barrett wrote:
> Some interesting details:
>
> I have now tried several other examples. Those that use EML, ECL, or EVL
> fail pretty much in the same way, i.e., when running the .launch file
> (after changing the source attribute of the configuration over to
> forward slashes) I get the same NullPointerException; while doing an ANT
> build (when there is a build.xml in the example) runs through the "fail
> on every model file before running successfully" pattern I noted in the
> first post. Additionally, it doesn't actually seem to create or alter
> anything.
>
> All examples that use EOL however, seem to work fine for me. Scanning
> the source code, I see that the launch method of the various
> LaunchConfigurationDelegate classes put together the name of the Epsilon
> file to be run slightly differently than the method for the EOL launch
> does. And it is the path of this file that I have to change in the run
> configuration to use the Unix style slashes.
>
> Beyond this point, I am over my head. So I will just have to wish you
> luck with it!
> --Steve


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ECL/EML example not working [message #532721 is a reply to message #532496] Mon, 10 May 2010 22:14 Go to previous messageGo to next message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Okay Dimitrios,

I did as you asked, but it still fails in the same way.

But I did find an answer -- I have to install the example code in the default Eclipse working directory. The metamodels I can put elsewhere, but the example code I can't. This is true of both the code on the example page, and out of SVN.

I haven't experimented to see if this solves the ANT issues yet.

--Steve
Re: ECL/EML example not working [message #532871 is a reply to message #532721] Tue, 11 May 2010 08:14 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Steve,

Thanks for the update. I've rolled out a new interim version that fixes
this - but I haven't had a chance to look into the ANT tasks yet.

Cheers,
Dimitris

Stephen Barrett wrote:
> Okay Dimitrios,
>
> I did as you asked, but it still fails in the same way.
>
> But I did find an answer -- I have to install the example code in the
> default Eclipse working directory. The metamodels I can put elsewhere,
> but the example code I can't. This is true of both the code on the
> example page, and out of SVN.
>
> I haven't experimented to see if this solves the ANT issues yet.
>
> --Steve


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ECL/EML example not working [message #533991 is a reply to message #532871] Mon, 17 May 2010 12:05 Go to previous messageGo to next message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Hello Demitrios,

I can now confirm that the interim release fixes the original problem. Thank you.
Re: ECL/EML example not working [message #588992 is a reply to message #532426] Sun, 09 May 2010 18:16 Go to previous messageGo to next message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Okay, thanks. I'll keep digging for more details.

Cheers,
--Steve
Re: ECL/EML example not working [message #589006 is a reply to message #532426] Sun, 09 May 2010 23:37 Go to previous messageGo to next message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Some interesting details:

I have now tried several other examples. Those that use EML, ECL, or EVL fail pretty much in the same way, i.e., when running the .launch file (after changing the source attribute of the configuration over to forward slashes) I get the same NullPointerException; while doing an ANT build (when there is a build.xml in the example) runs through the "fail on every model file before running successfully" pattern I noted in the first post. Additionally, it doesn't actually seem to create or alter anything.

All examples that use EOL however, seem to work fine for me. Scanning the source code, I see that the launch method of the various LaunchConfigurationDelegate classes put together the name of the Epsilon file to be run slightly differently than the method for the EOL launch does. And it is the path of this file that I have to change in the run configuration to use the Unix style slashes.

Beyond this point, I am over my head. So I will just have to wish you luck with it!
--Steve
Re: ECL/EML example not working [message #589013 is a reply to message #589006] Mon, 10 May 2010 05:39 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Steve,

I've reproduced this. To run the example through the launch
configuration you need to change all \ to / in the paths of the .ecl and
..eml files. You'll also need to check out the
org.eclipse.epsilon.examples.metamodels project from the examples folder
in the SVN and right-click DomainVocabulary.ecore and Entity.ecore and
select "Register EPackages". I'll have a look at ANT now. Could you
please file a bug report using the link below?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon

Cheers,
Dimitris

Stephen Barrett wrote:
> Some interesting details:
>
> I have now tried several other examples. Those that use EML, ECL, or EVL
> fail pretty much in the same way, i.e., when running the .launch file
> (after changing the source attribute of the configuration over to
> forward slashes) I get the same NullPointerException; while doing an ANT
> build (when there is a build.xml in the example) runs through the "fail
> on every model file before running successfully" pattern I noted in the
> first post. Additionally, it doesn't actually seem to create or alter
> anything.
>
> All examples that use EOL however, seem to work fine for me. Scanning
> the source code, I see that the launch method of the various
> LaunchConfigurationDelegate classes put together the name of the Epsilon
> file to be run slightly differently than the method for the EOL launch
> does. And it is the path of this file that I have to change in the run
> configuration to use the Unix style slashes.
>
> Beyond this point, I am over my head. So I will just have to wish you
> luck with it!
> --Steve


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ECL/EML example not working [message #589121 is a reply to message #532496] Mon, 10 May 2010 22:14 Go to previous messageGo to next message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Okay Dimitrios,

I did as you asked, but it still fails in the same way.

But I did find an answer -- I have to install the example code in the default Eclipse working directory. The metamodels I can put elsewhere, but the example code I can't. This is true of both the code on the example page, and out of SVN.

I haven't experimented to see if this solves the ANT issues yet.

--Steve
Re: ECL/EML example not working [message #589148 is a reply to message #532721] Tue, 11 May 2010 08:14 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Steve,

Thanks for the update. I've rolled out a new interim version that fixes
this - but I haven't had a chance to look into the ANT tasks yet.

Cheers,
Dimitris

Stephen Barrett wrote:
> Okay Dimitrios,
>
> I did as you asked, but it still fails in the same way.
>
> But I did find an answer -- I have to install the example code in the
> default Eclipse working directory. The metamodels I can put elsewhere,
> but the example code I can't. This is true of both the code on the
> example page, and out of SVN.
>
> I haven't experimented to see if this solves the ANT issues yet.
>
> --Steve


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: ECL/EML example not working [message #589245 is a reply to message #532871] Mon, 17 May 2010 12:05 Go to previous message
Stephen Barrett is currently offline Stephen Barrett
Messages: 46
Registered: May 2010
Member
Hello Demitrios,

I can now confirm that the interim release fixes the original problem. Thank you.
Previous Topic:[EuGENia] Is it possible to have gmf.node with without label attribute?
Next Topic:XMI to HUTN bridge
Goto Forum:
  


Current Time: Tue Jul 22 17:38:00 EDT 2014

Powered by FUDForum. Page generated in 0.02103 seconds