Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » TemplateFactory.load help
TemplateFactory.load help [message #16125] Tue, 21 April 2009 10:56 Go to next message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Hi there,

I have in an EGL script the following line:

var t : Template := TemplateFactory.load('./Other.egl');

Previously, this line worked, but after my version of Epsilon from the SVN
I find that I get the following error:

Internal error: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL[URI.java:1080]
at org.eclipse.epsilon.egl.EglModule.parse[EglModule.java:97]
at org.eclipse.epsilon.egl.types.EglTemplate.<init>[EglTemplate.java:48]
at
org.eclipse.epsilon.egl.types.EglFileGeneratingTemplate.<init >[EglFileGeneratingTemplate.java:50]
at
org.eclipse.epsilon.egl.template.FileGeneratingTemplateFacto ry.load[FileGeneratingTemplateFactory.java:51]
at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
...

Do you have any ideas why this might have occurred.

I believe I am probably using the method incorrectly, as I may have
unintentionally changed some of my code along the lines. However, when
having a naive look in to the code, as to why this might error might be
happenning I noticed that in:

org.eclipse.epsilon.egl.template.TemplateFactory

the resolveTemplate method calls UriUtil.resolve(path, templateRoot, root)
-- and on inspection templateRoot and root are null. Should this be the
case? Perhaps I need to call the TemplateFactory.load method differently?!

Any help to resolve this issue would be much appreciated.

PS. I'm running this EGL script from a standard launch configuration.

All the best,

Edd
Re: TemplateFactory.load help [message #16139 is a reply to message #16125] Tue, 21 April 2009 10:59 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Whoops! Noticed I missed the crucial word of a sentence in my previous
message, sorry!! The sentence should read

...

Previously, this line worked, but after **updating** my version of Epsilon
from the SVN I find that I get the following error:

...
Re: TemplateFactory.load help [message #16153 is a reply to message #16139] Tue, 21 April 2009 11:09 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Edd,

This appears to be yet another path-related regression. Could you please
open a bug for it and we'll look into it asap.

Cheers,
Dimitris

Edward Turner wrote:
> Whoops! Noticed I missed the crucial word of a sentence in my previous
> message, sorry!! The sentence should read
>
> ..
> Previously, this line worked, but after **updating** my version of
> Epsilon from the SVN I find that I get the following error:
>
> ..
>
>
Re: TemplateFactory.load help [message #16194 is a reply to message #16153] Wed, 22 April 2009 10:21 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Edd,

Thanks for the message. This is a regression introduced in a recent
change to EGL. I'm about to commit a change to SVN that should fix the
problem. Do let me know if you have any further problems.

I'm investigating why our tests didn't fail. I've opened a bug to track
this, and any further issues:

https://bugs.eclipse.org/273222

Cheers,
Louis.

Dimitris Kolovos wrote:
> Hi Edd,
>
> This appears to be yet another path-related regression. Could you please
> open a bug for it and we'll look into it asap.
>
> Cheers,
> Dimitris
>
> Edward Turner wrote:
>> Whoops! Noticed I missed the crucial word of a sentence in my previous
>> message, sorry!! The sentence should read
>>
>> ..
>> Previously, this line worked, but after **updating** my version of
>> Epsilon from the SVN I find that I get the following error:
>>
>> ..
>>
>>
Re: TemplateFactory.load help [message #16223 is a reply to message #16194] Wed, 22 April 2009 11:03 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Hi Louis,

Thanks for the prompt reply and update -- this has fixed the problem...
thanks, that's great!

> ... I've opened a bug to track
> this, and any further issues:

> https://bugs.eclipse.org/273222

Thanks for opening the bug report for me -- I wasn't available for some of
yesterday and this morning I had the nice surprise that you'd resolved the
problem!

> Cheers,
> Louis.

Many thanks,

Edd
Re: TemplateFactory.load help [message #16238 is a reply to message #16223] Wed, 22 April 2009 11:35 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Edward Turner wrote:
> Hi Louis,
>
> Thanks for the prompt reply and update -- this has fixed the problem...
> thanks, that's great!
>

Hi Edd,

You're welcome. Thanks for the report - sorry about the regression!

Cheers,
Louis.
Re: TemplateFactory.load help [message #566895 is a reply to message #16125] Tue, 21 April 2009 10:59 Go to previous message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Whoops! Noticed I missed the crucial word of a sentence in my previous
message, sorry!! The sentence should read

...

Previously, this line worked, but after **updating** my version of Epsilon
from the SVN I find that I get the following error:

...
Re: TemplateFactory.load help [message #566905 is a reply to message #16139] Tue, 21 April 2009 11:09 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Edd,

This appears to be yet another path-related regression. Could you please
open a bug for it and we'll look into it asap.

Cheers,
Dimitris

Edward Turner wrote:
> Whoops! Noticed I missed the crucial word of a sentence in my previous
> message, sorry!! The sentence should read
>
> ..
> Previously, this line worked, but after **updating** my version of
> Epsilon from the SVN I find that I get the following error:
>
> ..
>
>
Re: TemplateFactory.load help [message #566991 is a reply to message #16153] Wed, 22 April 2009 10:21 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Edd,

Thanks for the message. This is a regression introduced in a recent
change to EGL. I'm about to commit a change to SVN that should fix the
problem. Do let me know if you have any further problems.

I'm investigating why our tests didn't fail. I've opened a bug to track
this, and any further issues:

https://bugs.eclipse.org/273222

Cheers,
Louis.

Dimitris Kolovos wrote:
> Hi Edd,
>
> This appears to be yet another path-related regression. Could you please
> open a bug for it and we'll look into it asap.
>
> Cheers,
> Dimitris
>
> Edward Turner wrote:
>> Whoops! Noticed I missed the crucial word of a sentence in my previous
>> message, sorry!! The sentence should read
>>
>> ..
>> Previously, this line worked, but after **updating** my version of
>> Epsilon from the SVN I find that I get the following error:
>>
>> ..
>>
>>
Re: TemplateFactory.load help [message #567029 is a reply to message #16194] Wed, 22 April 2009 11:03 Go to previous message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Hi Louis,

Thanks for the prompt reply and update -- this has fixed the problem...
thanks, that's great!

> ... I've opened a bug to track
> this, and any further issues:

> https://bugs.eclipse.org/273222

Thanks for opening the bug report for me -- I wasn't available for some of
yesterday and this morning I had the nice surprise that you'd resolved the
problem!

> Cheers,
> Louis.

Many thanks,

Edd
Re: TemplateFactory.load help [message #567048 is a reply to message #16223] Wed, 22 April 2009 11:35 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Edward Turner wrote:
> Hi Louis,
>
> Thanks for the prompt reply and update -- this has fixed the problem...
> thanks, that's great!
>

Hi Edd,

You're welcome. Thanks for the report - sorry about the regression!

Cheers,
Louis.
Previous Topic:Access to the Diagram Model
Next Topic:EWL setting a profile/stereotype and trigger the wizard
Goto Forum:
  


Current Time: Sun Nov 23 07:47:49 GMT 2014

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

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