Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] New ATL3.0 ant taks issue
[ATL] New ATL3.0 ant taks issue [message #101106] Thu, 05 March 2009 17:03 Go to next message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
Hi,
I'm using the new ATL ant task included in ATL 3.0 under Eclipse 3.5 The
tasks work just like the AM3 ones with some minor name changes. However,
the xml extractor task under saveModel always throws a
NullPointerException. For example

<atl.launch path="ATL/Transform.asm">
<inModel name="IN" model="inModel"/>
<inModel name="owl" model="OWL"/>
<inModel name="XML" model="XML"/>
<outModel name="OUT" model="xmlModel" metamodel="XML"/>
</atl.launch>

<atl.saveModel model="xmlModel" path="x.owl">
<extractor name="xml"/>
</atl.saveModel>

Has anyone has similar issues? This occurs even with the simplest models.
Cheers,
Ronan
Re: [ATL] New ATL3.0 ant taks issue [message #101121 is a reply to message #101106] Thu, 05 March 2009 18:58 Go to previous messageGo to next message
Nicolas Rouquette is currently offline Nicolas RouquetteFriend
Messages: 157
Registered: July 2009
Senior Member
I have the same NPE with XML injection:

<atl.loadModel modelHandler="EMF" name="..." metamodel="XML" path="..">
<injector name="xml"/>
</atl.loadModel>

Is there a way to tell which injectors/extractors are available?
It seems to me that the NPE is really about the fact that the lookup for
the "xml" injector or extractor is finding nada and then kaboum...

-- Nicolas.

Ronan wrote:
> Hi,
> I'm using the new ATL ant task included in ATL 3.0 under Eclipse 3.5 The
> tasks work just like the AM3 ones with some minor name changes. However,
> the xml extractor task under saveModel always throws a
> NullPointerException. For example
>
> <atl.launch path="ATL/Transform.asm">
> <inModel name="IN" model="inModel"/>
> <inModel name="owl" model="OWL"/>
> <inModel name="XML" model="XML"/>
> <outModel name="OUT" model="xmlModel" metamodel="XML"/>
> </atl.launch>
>
> <atl.saveModel model="xmlModel" path="x.owl">
> <extractor name="xml"/>
> </atl.saveModel>
>
> Has anyone has similar issues? This occurs even with the simplest models.
> Cheers,
> Ronan
>
Re: [ATL] New ATL3.0 ant taks issue [message #101144 is a reply to message #101121] Fri, 06 March 2009 10:25 Go to previous message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
Hey,
Yes it does seem like that alright. I think i remember seeing a similar
error back when the AM3 extractor didn't work a while back. I've filled a
bug as the error really should give more details than just a NPE. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=267338
Cheers,
Ronan
Previous Topic:[ATL] inject ATL file to ATL model with TCS?
Next Topic:[ATL] problem when input and output models share a metamodel
Goto Forum:
  


Current Time: Thu Apr 25 08:57:43 GMT 2024

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

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

Back to the top