Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] (bug?) ATLEMFModelHandler throwing NPE
[ATL] (bug?) ATLEMFModelHandler throwing NPE [message #81329] Thu, 15 May 2008 13:41 Go to next message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

Hi,

I get the following backtrace when setting the ATL model handler:

AtlEMFModelHandler:: getting resource
AtlEMFModelHandler:: got resource: null
SEVERE: null
java.lang.NullPointerException
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:334)
at org.eclipse.m2m.atl.engine.AtlEMFModelHandler.<init>(AtlEMFModelHandler.java:216)
at org.eclipse.m2m.atl.engine.AtlModelHandler.getDefault(AtlMod elHandler.java:61)
at meta.custom.Transform.doATLTransformation(Transform.java:97)

> Transform.java:97: this.amh = AtlModelHandler.getDefault(AtlModelHandler.AMH_EMF);
with amh declared as "private AtlModelHandler amh"

This is with todays ATL. Should I file a bug report?

Regards,
Rene
Re: [ATL] (bug?) ATLEMFModelHandler throwing NPE [message #81345 is a reply to message #81329] Thu, 15 May 2008 14:13 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
Hello,

Rene Ladan a écrit :
> Hi,
>
> I get the following backtrace when setting the ATL model handler:
>
> AtlEMFModelHandler:: getting resource
> AtlEMFModelHandler:: got resource: null
> SEVERE: null
> java.lang.NullPointerException
> at
> org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:334)
>
> at
> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.<init>(AtlEMFModelHandler.java:216)
>
> at
> org.eclipse.m2m.atl.engine.AtlModelHandler.getDefault(AtlMod elHandler.java:61)
>
> at meta.custom.Transform.doATLTransformation(Transform.java:97)
>
> > Transform.java:97: this.amh =
> AtlModelHandler.getDefault(AtlModelHandler.AMH_EMF);
> with amh declared as "private AtlModelHandler amh"

The error seems to come from the model you're trying to load, after
setting the modelhandler (but I may be wrong).
Could you please attach your (latest) Transform.java file, and if
possible, the sample you're using (models, transformation).

Otherwise, some examples of programmatic launch can be found here :
- ATL non-regression tests :
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.atl/tests/org.eclipse.m2m.atl.tests/?root=Model ing_Project
- ATL examples :
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.atl/examples/org.eclipse.m2m.atl.examples/src/o rg/eclipse/m2m/atl/examples/?root=Modeling_Project

Best regards,

William

>
> This is with todays ATL. Should I file a bug report?
>
> Regards,
> Rene
Re: [ATL] (bug?) ATLEMFModelHandler throwing NPE [message #81363 is a reply to message #81345] Thu, 15 May 2008 14:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

This is a multi-part message in MIME format.
--------------040000070301020307000107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

William Piers wrote:
> Hello,
>
> Rene Ladan a
Re: [ATL] (bug?) ATLEMFModelHandler throwing NPE [message #81377 is a reply to message #81363] Thu, 15 May 2008 15:49 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
I didn't reproduce it exactly but I saw that a dependency is indirectly
required by the EMF model handler, org.eclipse.emf.ecore.xmi .

If it doesn't work, could you please report a new bug ?

Thank in advance

William

Rene Ladan a écrit :
> William Piers wrote:
>> Hello,
>>
>> Rene Ladan a écrit :
>>> Hi,
>>>
>>> I get the following backtrace when setting the ATL model handler:
>>>
>>> AtlEMFModelHandler:: getting resource
>>> AtlEMFModelHandler:: got resource: null
>>> SEVERE: null
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:334)
>>> at
>>> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.<init>(AtlEMFModelHandler.java:216)
>>> at
>>> org.eclipse.m2m.atl.engine.AtlModelHandler.getDefault(AtlMod elHandler.java:61)
>>> at meta.custom.Transform.doATLTransformation(Transform.java:97)
>>>
>>> > Transform.java:97: this.amh =
>>> AtlModelHandler.getDefault(AtlModelHandler.AMH_EMF);
>>> with amh declared as "private AtlModelHandler amh"
>>
>> The error seems to come from the model you're trying to load, after
>> setting the modelhandler (but I may be wrong).
> But the offending statement is before any (meta)model is loaded (?)
>
>> Could you please attach your (latest) Transform.java file, and if
>> possible, the sample you're using (models, transformation).
>>
> I've attached my latest Transform.java (it acts as a bridge between ATL
> and the rest of the tool) and the metamodel. The model itself might be
> contain NDA'd stuff (who invented them? >:( ), so it is not attached.
>
> Regards,
> Rene
>
Re: [ATL] (bug?) ATLEMFModelHandler throwing NPE [message #81416 is a reply to message #81377] Fri, 16 May 2008 07:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

William Piers wrote:
> I didn't reproduce it exactly but I saw that a dependency is indirectly
> required by the EMF model handler, org.eclipse.emf.ecore.xmi .
>
According to the "About Plug-ins" window I have org.eclipse.emf.ecore.xmi
v2.3.2 200802051830 installed. Both 2.3.1-200709252135.jar and
2.3.2-200802051830.jar are in the plugins directory.

> If it doesn't work, could you please report a new bug ?
I'll do that.

Rene
> Rene Ladan a écrit :
>> William Piers wrote:
>>> Hello,
>>>
>>> Rene Ladan a écrit :
>>>> Hi,
>>>>
>>>> I get the following backtrace when setting the ATL model handler:
>>>>
>>>> AtlEMFModelHandler:: getting resource
>>>> AtlEMFModelHandler:: got resource: null
>>>> SEVERE: null
>>>> java.lang.NullPointerException
>>>> at
>>>> org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:334)
>>>> at
>>>> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.<init>(AtlEMFModelHandler.java:216)
>>>> at
>>>> org.eclipse.m2m.atl.engine.AtlModelHandler.getDefault(AtlMod elHandler.java:61)
>>>> at meta.custom.Transform.doATLTransformation(Transform.java:97)
>>>>
>>>> > Transform.java:97: this.amh =
>>>> AtlModelHandler.getDefault(AtlModelHandler.AMH_EMF);
>>>> with amh declared as "private AtlModelHandler amh"
>>>
>>> The error seems to come from the model you're trying to load, after
>>> setting the modelhandler (but I may be wrong).
>> But the offending statement is before any (meta)model is loaded (?)
>>
>>> Could you please attach your (latest) Transform.java file, and if
>>> possible, the sample you're using (models, transformation).
>>>
>> I've attached my latest Transform.java (it acts as a bridge between ATL
>> and the rest of the tool) and the metamodel. The model itself might be
>> contain NDA'd stuff (who invented them? >:( ), so it is not attached.
>>
>> Regards,
>> Rene
>>
Re: [ATL] (bug?) ATLEMFModelHandler throwing NPE [message #81620 is a reply to message #81416] Mon, 19 May 2008 08:50 Go to previous message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

Rene Ladan wrote:
> William Piers wrote:
>> I didn't reproduce it exactly but I saw that a dependency is
>> indirectly required by the EMF model handler, org.eclipse.emf.ecore.xmi .
>>
> According to the "About Plug-ins" window I have org.eclipse.emf.ecore.xmi
> v2.3.2 200802051830 installed. Both 2.3.1-200709252135.jar and
> 2.3.2-200802051830.jar are in the plugins directory.
>
>> If it doesn't work, could you please report a new bug ?
> I'll do that.
>
Actually this is not needed, because it was triggered by some environmental
issue which causes Eclipse unable to find ATL-0.2.ecore (I think there are
archives on this). I'm now testing ATL 2.0.0v20080505 with Eclipse 3.4M7/EMF 2.4M7.

Regards,
Rene
Previous Topic:[ATL] Packaging bug in org.eclipse.m2m.atl.engine.vm plugin
Next Topic:[ATL] I need to get a org.eclipse.m2m.atl.adt.editor Java Files!
Goto Forum:
  


Current Time: Mon Jun 17 12:34:51 GMT 2019

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

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

Back to the top