Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] Unable to run QVTO transformation, Invalid source URI?
[QVTO] Unable to run QVTO transformation, Invalid source URI? [message #500961] Mon, 30 November 2009 13:32 Go to next message
PBarendrecht is currently offline PBarendrechtFriend
Messages: 36
Registered: November 2009
Location: Eindhoven, Netherlands
Member
Hi all,
I've finished a basic qvto-model, and now I'd like to test it. However, when I choose "new Operational QVT Interpreter" and fill in the location of my .mm1 model in the "IN Transformation Parameter" field, it doesn't accept the model:

Invalid source URI 'platform:/resource/MM1NaarMM2/transforms/M1.mm1' for parameter 'modelin'


I made the .mm1 model by generating an editor of the model, Run as -> Eclipse Application, and created a new .mm1 file. In the tree-structure I put together a test model.

How can I solve this? I read somewhere that you can choose to generate a Dynamic Instance of your metamodel, but isn't it the idea behind all this that one can transform any model?

[Updated on: Mon, 30 November 2009 14:15]

Report message to a moderator

Re: [QVTO ]Unable to run QVTO transformation, Invalid source URI? [message #500972 is a reply to message #500961] Mon, 30 November 2009 14:13 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi PBarendrecht,

QVTo accepts your script that references metamodel without errors but
launch configuration doesn't accept instance of that MM, right?

Looks like some wrong in the way metamodel references from .mm1 model.

Did you try QVTO launch configuration also in the new Eclipse instance
(like .mm1 model is) ?

For easier debugging could you please post MM, .mm1 model and script here?

Regards,
Sergey

PBarendrecht wrote:
> Hi all,
> I've finished an easy qvto-model, and now I'd like to test it. However,
> when I choose "new Operational QVT Interpreter" and fill in the location
> of my .mm1 model in the "IN Transformation Parameter" field, it doesn't
> accept the model:
>
> Invalid source URI 'platform:/resource/MM1NaarMM2/transforms/M1.mm1' for
> parameter 'modelin'
>
> I made the .mm1 model by generating an editor of the model, Run as ->
> Eclipse Application, and created a new .mm1 file. In the tree-structure
> I put together a test model.
>
> How can I solve this? I read somewhere that you can choose to generate a
> Dynamic Instance of your metamodel, but isn't it the idea behind all
> this that one can transform any model?
Re: [QVTO] Unable to run QVTO transformation, Invalid source URI? [message #500975 is a reply to message #500961] Mon, 30 November 2009 14:43 Go to previous messageGo to next message
PBarendrecht is currently offline PBarendrechtFriend
Messages: 36
Registered: November 2009
Location: Eindhoven, Netherlands
Member
Hi Sergey,

Thanks for your reply. Indeed, the Launch Configuration doesn't accept my instance, although I'm sure it is at the given location.

I did not yet try to run the transformation in the new Eclipse instance, because I would have to define the project again (QVT project, transformation, etc.)

I attached a .zip file of my .ecore models, .qvto transformation and .mm1 Smile

[Edit]
The attachment doens't appear in my post, so I uploaded it to my website: http://redpanda.nl/MM1NaarMM2.zip

[Updated on: Mon, 30 November 2009 14:46]

Report message to a moderator

Re: [QVTO] Unable to run QVTO transformation, Invalid source URI? [message #500986 is a reply to message #500975] Mon, 30 November 2009 14:58 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi PBarendrecht,

Unfortunately there's no attachment in your post.
Alternatively you could send emal directly to sboyko@borland.com (to me :)

Seems that the problem is that .mm1 model uses in the other Eclipse
instance then it was born. Btw, did .mm1 references MM by package URI or
by location like platform:/plugin.. ?

PBarendrecht wrote:
> Hi Sergey,
>
> Thanks for your reply. Indeed, the Launch Configuration doesn't accept
> my instance, although I'm sure it is at the given location.
>
> I did not yet try to run the transformation in the new Eclipse instance,
> because I would have to define the project again (QVT project,
> transformation, etc.)
>
> I attached a .zip file of my .ecore models, .qvto transformation and mm1 :)
Re: [QVTO] Unable to run QVTO transformation, Invalid source URI? [message #501020 is a reply to message #500961] Mon, 30 November 2009 17:23 Go to previous message
PBarendrecht is currently offline PBarendrechtFriend
Messages: 36
Registered: November 2009
Location: Eindhoven, Netherlands
Member
The problem is solved. I had to replace something in the .mm1 file:

xmlns:mm1="..." was replaced by
xmlns:mm1="platform:/resource/MM1NaarMM2/transforms/MM1.ecore "

So, I learned that an instance of a metamodel should have a reference to the metamodel.
Previous Topic:[ATL] Is UML profile supported as output metamodel?
Next Topic:[ATL] how to add a xsi:schemaLocation in the generated model automatically?
Goto Forum:
  


Current Time: Thu Nov 21 14:02:00 GMT 2019

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

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

Back to the top