Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] ATL 2 API changes and NullPointerException
[ATL] ATL 2 API changes and NullPointerException [message #56507] Tue, 07 August 2007 09:55 Go to next message
Eclipse UserFriend
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 messageGo to next message
Frédéric Jouault is currently offline Frédéric JouaultFriend
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
Eclipse UserFriend
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
Previous Topic:[ATL] ACG documentation available on the Wiki
Next Topic:[ATL] How to chek if the model handler is installed
Goto Forum:
  


Current Time: Thu Jan 21 16:01:02 GMT 2021

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

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

Back to the top