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 |
PBarendrecht 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 |
Sergey Boyko 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 |
PBarendrecht 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
[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 |
Sergey Boyko 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 :)
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 17:16:44 GMT 2024
Powered by FUDForum. Page generated in 0.03216 seconds
|