[ATL] ATL 2 API changes and NullPointerException [message #56507] |
Tue, 07 August 2007 09:55 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: r.c.ladan.tue.nl
Hi,
I converted from ATL 1 to ATL 2.0.0rc2, but I get a NullPointerException
when calling it from Java:
java.lang.NullPointerException
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:144)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:65)
at meta.presentation.MetaEditor.doATLTransformation(MetaEditor. java:381)
MetaEditor.java:381 :
this.amh.saveModel(this.models.get("OUT"), outModel);
using:
AtlModelHandler amh
ByteArrayOutputStream outModel
this.models.get("OUT") retrieves ASMEMFModel OUT from a HashMap. It is
created as:
ASMEMFModel outputModel;
outputModel = ASMEMFModel.newASMEMFModel("OUT", "OUT",
this.metaModel, this.ml);
outputModel.setCheckSameModel(false);
using:
ASMEMFModel metaModel;
protected EMFModelLoader ml;
Changing the second "OUT" string to "" or null doesn't help.
Any ideas?
Thanks,
Rene
|
|
|
Re: [ATL] ATL 2 API changes and NullPointerException [message #56589 is a reply to message #56507] |
Tue, 07 August 2007 13:26 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Frédéric Jouault![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=frederic.jouault%40univ-nantes.fr) Messages: 572 Registered: July 2009 |
Senior Member |
|
|
Hi Rene,
Could you please use bugzilla to discuss this issue?
Thanks,
Frédéric Jouault
Rene Ladan wrote:
> Hi,
>
> I converted from ATL 1 to ATL 2.0.0rc2, but I get a NullPointerException
> when calling it from Java:
>
> java.lang.NullPointerException
> at
> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:144)
>
> at
> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:65)
>
> at meta.presentation.MetaEditor.doATLTransformation(MetaEditor. java:381)
>
> MetaEditor.java:381 :
> this.amh.saveModel(this.models.get("OUT"), outModel);
> using:
> AtlModelHandler amh
> ByteArrayOutputStream outModel
> this.models.get("OUT") retrieves ASMEMFModel OUT from a HashMap. It is
> created as:
>
> ASMEMFModel outputModel;
> outputModel = ASMEMFModel.newASMEMFModel("OUT", "OUT", this.metaModel,
> this.ml);
> outputModel.setCheckSameModel(false);
> using:
> ASMEMFModel metaModel;
> protected EMFModelLoader ml;
>
> Changing the second "OUT" string to "" or null doesn't help.
>
> Any ideas?
>
> Thanks,
> Rene
|
|
|
Re: [ATL] ATL 2 API changes and NullPointerException [message #56670 is a reply to message #56589] |
Wed, 08 August 2007 07:44 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: r.c.ladan.tue.nl
Frédéric Jouault wrote:
> Hi Rene,
>
> Could you please use bugzilla to discuss this issue?
>
>
Done. The bug number is 199211 .
Regards,
Rene
>
>
> Rene Ladan wrote:
>> Hi,
>>
>> I converted from ATL 1 to ATL 2.0.0rc2, but I get a
>> NullPointerException when calling it from Java:
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:144)
>>
>> at
>> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:65)
>>
>> at meta.presentation.MetaEditor.doATLTransformation(MetaEditor. java:381)
>>
>> MetaEditor.java:381 :
>> this.amh.saveModel(this.models.get("OUT"), outModel);
>> using:
>> AtlModelHandler amh
>> ByteArrayOutputStream outModel
>> this.models.get("OUT") retrieves ASMEMFModel OUT from a HashMap. It
>> is created as:
>>
>> ASMEMFModel outputModel;
>> outputModel = ASMEMFModel.newASMEMFModel("OUT", "OUT", this.metaModel,
>> this.ml);
>> outputModel.setCheckSameModel(false);
>> using:
>> ASMEMFModel metaModel;
>> protected EMFModelLoader ml;
>>
>> Changing the second "OUT" string to "" or null doesn't help.
>>
>> Any ideas?
>>
>> Thanks,
>> Rene
|
|
|
Powered by
FUDForum. Page generated in 0.03900 seconds