Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EGL error?
EGL error? [message #484370] Mon, 07 September 2009 09:23 Go to next message
Eclipse UserFriend
Originally posted by: d.clowes.lboro.ac.uk

Hi all,

I get the error message below. The only problem I have is that line 215 is
the end of the file and line 0 the start. I am therefore struggling to
detect what is causing this. Anyone have any ideas of the likely culprits
of this type of error?

Thanks Darren.


exception

is not a model element
(G:\Documents\Eclipse\NewTDL\WebApp\root\demo2.egl@215:0)
org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:199 )
org.eclipse.epsilon.egl.servlet.EglServlet.doGet(EglServlet. java:88)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

is not a model element
(G:\Documents\Eclipse\NewTDL\WebApp\root\demo2.egl@0:0)
org.eclipse.epsilon.eol.execute.operations.simple.IdOperatio n.execute(IdOperation.java:33)
org.eclipse.epsilon.eol.execute.PointExecutor.executeOperati on(PointExecutor.java:185)
Re: EGL error? [message #484371 is a reply to message #484370] Mon, 07 September 2009 09:29 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Darren,

Could you please let me know what the content of this line looks like.
Off the top of my head it seems that you are using something like x.id()
- unless overridden, id() is an operation that applies to model elements
and returns their unique id (e.g. XMI ID for EMF model elements).

Cheers,
Dimitris

Darren Clowes wrote:
> Hi all,
>
> I get the error message below. The only problem I have is that line 215
> is the end of the file and line 0 the start. I am therefore struggling
> to detect what is causing this. Anyone have any ideas of the likely
> culprits of this type of error?
>
> Thanks Darren.
>
>
> exception
>
> is not a model element
> (G:\Documents\Eclipse\NewTDL\WebApp\root\demo2.egl@215:0)
> org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:199 )
> org.eclipse.epsilon.egl.servlet.EglServlet.doGet(EglServlet. java:88)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> root cause
>
> is not a model element
> (G:\Documents\Eclipse\NewTDL\WebApp\root\demo2.egl@0:0)
> org.eclipse.epsilon.eol.execute.operations.simple.IdOperatio n.execute(IdOperation.java:33)
>
> org.eclipse.epsilon.eol.execute.PointExecutor.executeOperati on(PointExecutor.java:185)
>
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EGL error? [message #484374 is a reply to message #484371] Mon, 07 September 2009 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: d.clowes.lboro.ac.uk

hi Dimitris,

line 0:0 does not exist, line 215 = "}%]"

However the } closes the operation:

operation Any shortId() : String{
var s : String := self.id().toString();
s := s.replace('/','');
s := s.replace('[@]versions[\\.]','v');
s := s.replace('[@]elements[\\.]','e');
s := s.replace('[@]children[\\.]','c');

return s;
}%]
Re: EGL error? [message #484377 is a reply to message #484374] Mon, 07 September 2009 10:06 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Darren,

This is a bug in the error reporting of the id() operation -- I've fixed
it and committed changes to the SVN. Still, I suspect self in
self.id().toString() is causing the problem as for some invocation of
x.shortId(), x is not a model element.

Cheers,
Dimitris

Darren Clowes wrote:
> hi Dimitris,
>
> line 0:0 does not exist, line 215 = "}%]"
>
> However the } closes the operation:
>
> operation Any shortId() : String{
> var s : String := self.id().toString();
> s := s.replace('/','');
> s := s.replace('[@]versions[\\.]','v');
> s := s.replace('[@]elements[\\.]','e');
> s := s.replace('[@]children[\\.]','c');
>
> return s;
> }%]
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EGL error? [message #484420 is a reply to message #484377] Mon, 07 September 2009 12:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: d.clowes.lboro.ac.uk

Hello Dimitris,

I've checked out the latest from SVN. I am assuming that I therefore need
to compile/build the eol.engine into a jar and copy this into my libraries
folder for the update to be picked up in Tomcat. Is this correct?

If so I do not seem to be able to either force the project to compile or
locate where it is storing the jar. Could you advise on this? I have build
automatically selected and have also tried to put eol.engine in a working
set to build, but do not seem to have it figured out yet.

Thanks,

Darren
Re: EGL error? [message #484421 is a reply to message #484420] Mon, 07 September 2009 13:04 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Darren,

To build the binaries you need to check out the
org.eclipse.epsilon.egl.servlet project from the Google code SVN
alongside the org.eclipse.epsilon.* projects you have checked out from
the eclipse.org SVN. Then you can run the build-dependencies.xml ANT
script in org.eclipse.epsilon.egl.servlet, which will generate the jars
in the bin folder of the project.

Cheers,
Dimitris

Darren Clowes wrote:
> Hello Dimitris,
>
> I've checked out the latest from SVN. I am assuming that I therefore
> need to compile/build the eol.engine into a jar and copy this into my
> libraries folder for the update to be picked up in Tomcat. Is this correct?
>
> If so I do not seem to be able to either force the project to compile or
> locate where it is storing the jar. Could you advise on this? I have
> build automatically selected and have also tried to put eol.engine in a
> working set to build, but do not seem to have it figured out yet.
>
> Thanks,
>
> Darren
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EGL error? [message #484576 is a reply to message #484377] Tue, 08 September 2009 10:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: d.clowes.lboro.ac.uk

I have tracked down the error. This error is being generated when a
relationship on a class has not been set but is called. I.e. if I had a
loop like:

for (c in class1.all){
c.child.print();
}

and for some reason an instance of class1 does not have a child set, then
this is the error message I am getting.

Rather than pointing at the offending line it gives the start and end of
the file as the location.
Re: EGL error? [message #484578 is a reply to message #484576] Tue, 08 September 2009 10:56 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Darren,

That sounds odd... If c.child is not defined it should just return null
and print() is fine with being called on null. Could you please come up
with a minimal standalone example (metamodel, model and eol) that
reproduces this?

Cheers,
Dimitris

Darren Clowes wrote:
> I have tracked down the error. This error is being generated when a
> relationship on a class has not been set but is called. I.e. if I had a
> loop like:
>
> for (c in class1.all){
> c.child.print();
> }
>
> and for some reason an instance of class1 does not have a child set,
> then this is the error message I am getting.
> Rather than pointing at the offending line it gives the start and end of
> the file as the location.
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EGL error? [message #580268 is a reply to message #484370] Mon, 07 September 2009 09:29 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Darren,

Could you please let me know what the content of this line looks like.
Off the top of my head it seems that you are using something like x.id()
- unless overridden, id() is an operation that applies to model elements
and returns their unique id (e.g. XMI ID for EMF model elements).

Cheers,
Dimitris

Darren Clowes wrote:
> Hi all,
>
> I get the error message below. The only problem I have is that line 215
> is the end of the file and line 0 the start. I am therefore struggling
> to detect what is causing this. Anyone have any ideas of the likely
> culprits of this type of error?
>
> Thanks Darren.
>
>
> exception
>
> is not a model element
> (G:\Documents\Eclipse\NewTDL\WebApp\root\demo2.egl@215:0)
> org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:199 )
> org.eclipse.epsilon.egl.servlet.EglServlet.doGet(EglServlet. java:88)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> root cause
>
> is not a model element
> (G:\Documents\Eclipse\NewTDL\WebApp\root\demo2.egl@0:0)
> org.eclipse.epsilon.eol.execute.operations.simple.IdOperatio n.execute(IdOperation.java:33)
>
> org.eclipse.epsilon.eol.execute.PointExecutor.executeOperati on(PointExecutor.java:185)
>
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EGL error? [message #580299 is a reply to message #484371] Mon, 07 September 2009 09:54 Go to previous message
Darren  is currently offline Darren Friend
Messages: 40
Registered: September 2009
Member
hi Dimitris,

line 0:0 does not exist, line 215 = "}%]"

However the } closes the operation:

operation Any shortId() : String{
var s : String := self.id().toString();
s := s.replace('/','');
s := s.replace('[@]versions[\\.]','v');
s := s.replace('[@]elements[\\.]','e');
s := s.replace('[@]children[\\.]','c');

return s;
}%]
Re: EGL error? [message #580319 is a reply to message #484374] Mon, 07 September 2009 10:06 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Darren,

This is a bug in the error reporting of the id() operation -- I've fixed
it and committed changes to the SVN. Still, I suspect self in
self.id().toString() is causing the problem as for some invocation of
x.shortId(), x is not a model element.

Cheers,
Dimitris

Darren Clowes wrote:
> hi Dimitris,
>
> line 0:0 does not exist, line 215 = "}%]"
>
> However the } closes the operation:
>
> operation Any shortId() : String{
> var s : String := self.id().toString();
> s := s.replace('/','');
> s := s.replace('[@]versions[\\.]','v');
> s := s.replace('[@]elements[\\.]','e');
> s := s.replace('[@]children[\\.]','c');
>
> return s;
> }%]
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EGL error? [message #580334 is a reply to message #484377] Mon, 07 September 2009 12:58 Go to previous message
Darren  is currently offline Darren Friend
Messages: 40
Registered: September 2009
Member
Hello Dimitris,

I've checked out the latest from SVN. I am assuming that I therefore need
to compile/build the eol.engine into a jar and copy this into my libraries
folder for the update to be picked up in Tomcat. Is this correct?

If so I do not seem to be able to either force the project to compile or
locate where it is storing the jar. Could you advise on this? I have build
automatically selected and have also tried to put eol.engine in a working
set to build, but do not seem to have it figured out yet.

Thanks,

Darren
Re: EGL error? [message #580353 is a reply to message #484420] Mon, 07 September 2009 13:04 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Darren,

To build the binaries you need to check out the
org.eclipse.epsilon.egl.servlet project from the Google code SVN
alongside the org.eclipse.epsilon.* projects you have checked out from
the eclipse.org SVN. Then you can run the build-dependencies.xml ANT
script in org.eclipse.epsilon.egl.servlet, which will generate the jars
in the bin folder of the project.

Cheers,
Dimitris

Darren Clowes wrote:
> Hello Dimitris,
>
> I've checked out the latest from SVN. I am assuming that I therefore
> need to compile/build the eol.engine into a jar and copy this into my
> libraries folder for the update to be picked up in Tomcat. Is this correct?
>
> If so I do not seem to be able to either force the project to compile or
> locate where it is storing the jar. Could you advise on this? I have
> build automatically selected and have also tried to put eol.engine in a
> working set to build, but do not seem to have it figured out yet.
>
> Thanks,
>
> Darren
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EGL error? [message #580423 is a reply to message #484377] Tue, 08 September 2009 10:45 Go to previous message
Darren  is currently offline Darren Friend
Messages: 40
Registered: September 2009
Member
I have tracked down the error. This error is being generated when a
relationship on a class has not been set but is called. I.e. if I had a
loop like:

for (c in class1.all){
c.child.print();
}

and for some reason an instance of class1 does not have a child set, then
this is the error message I am getting.

Rather than pointing at the offending line it gives the start and end of
the file as the location.
Re: EGL error? [message #580458 is a reply to message #484576] Tue, 08 September 2009 10:56 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Darren,

That sounds odd... If c.child is not defined it should just return null
and print() is fine with being called on null. Could you please come up
with a minimal standalone example (metamodel, model and eol) that
reproduces this?

Cheers,
Dimitris

Darren Clowes wrote:
> I have tracked down the error. This error is being generated when a
> relationship on a class has not been set but is called. I.e. if I had a
> loop like:
>
> for (c in class1.all){
> c.child.print();
> }
>
> and for some reason an instance of class1 does not have a child set,
> then this is the error message I am getting.
> Rather than pointing at the offending line it gives the start and end of
> the file as the location.
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:XSD to EMF
Next Topic:Exceed labels in Emfatic
Goto Forum:
  


Current Time: Fri Apr 26 11:51:09 GMT 2024

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

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

Back to the top