EGL error? [message #484370] |
Mon, 07 September 2009 09:23 |
Eclipse User |
|
|
|
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 #484374 is a reply to message #484371] |
Mon, 07 September 2009 09:54 |
Eclipse User |
|
|
|
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 |
Dimitrios Kolovos 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 |
Eclipse User |
|
|
|
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 #484576 is a reply to message #484377] |
Tue, 08 September 2009 10:45 |
Eclipse User |
|
|
|
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 #580319 is a reply to message #484374] |
Mon, 07 September 2009 10:06 |
Dimitrios Kolovos 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
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05706 seconds