Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Transformation only executes once
[ATL] Transformation only executes once [message #31122] Fri, 13 April 2007 10:22 Go to next message
Eclipse UserFriend
Originally posted by: strommer.big.tuwien.ac.at

hi!

I'm having a problem concerning the execution of an ATL transformation.
The thing is that I can only execute the transformation once every time
I start eclipse. If I try to launch it a second time I get a

"message: cannot find model Map1"

.. My launch configuration includes one metamodel that is referenced by
URI and is actually a custom extension to Ecore. I remember some
problems with locked resources but in my case I can't understand why
this should happen. If I use any other metamodel by URI but mine
everything works fine.

Does anyone know how to deal with this ATL behavior?

Cheers,
Michael
Re: [ATL] Transformation only executes once [message #31722 is a reply to message #31122] Sat, 14 April 2007 16:30 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
Hello,

How do you register your metamodel?
As a plugin, or using the "Register metamodel" action?


Regards,

Frédéric Jouault

Michael Strommer wrote:
> hi!
>
> I'm having a problem concerning the execution of an ATL transformation.
> The thing is that I can only execute the transformation once every time
> I start eclipse. If I try to launch it a second time I get a
>
> "message: cannot find model Map1"
>
> .. My launch configuration includes one metamodel that is referenced by
> URI and is actually a custom extension to Ecore. I remember some
> problems with locked resources but in my case I can't understand why
> this should happen. If I use any other metamodel by URI but mine
> everything works fine.
>
> Does anyone know how to deal with this ATL behavior?
>
> Cheers,
> Michael
Re: [ATL] Transformation only executes once [message #31861 is a reply to message #31722] Mon, 16 April 2007 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: strommer.big.tuwien.ac.at

hi!

I just register the metamodel with the generated EMF plugin.

Best regards,
Michael


Frédéric Jouault schrieb:
> Hello,
>
> How do you register your metamodel?
> As a plugin, or using the "Register metamodel" action?
>
>
> Regards,
>
> Frédéric Jouault
>
> Michael Strommer wrote:
>> hi!
>>
>> I'm having a problem concerning the execution of an ATL
>> transformation. The thing is that I can only execute the
>> transformation once every time I start eclipse. If I try to launch it
>> a second time I get a
>>
>> "message: cannot find model Map1"
>>
>> .. My launch configuration includes one metamodel that is referenced
>> by URI and is actually a custom extension to Ecore. I remember some
>> problems with locked resources but in my case I can't understand why
>> this should happen. If I use any other metamodel by URI but mine
>> everything works fine.
>>
>> Does anyone know how to deal with this ATL behavior?
>>
>> Cheers,
>> Michael
Re: [ATL] Transformation only executes once [message #31969 is a reply to message #31861] Mon, 16 April 2007 14:50 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
Hello,

Could you please try to load your Ecore metamodel instead of using the
registered version? This may help us diagnose the problem.


Regards,

Frédéric Jouault


Michael Strommer wrote:
> hi!
>
> I just register the metamodel with the generated EMF plugin.
>
> Best regards,
> Michael
>
>
> Frédéric Jouault schrieb:
>> Hello,
>>
>> How do you register your metamodel?
>> As a plugin, or using the "Register metamodel" action?
>>
>>
>> Regards,
>>
>> Frédéric Jouault
>>
>> Michael Strommer wrote:
>>> hi!
>>>
>>> I'm having a problem concerning the execution of an ATL
>>> transformation. The thing is that I can only execute the
>>> transformation once every time I start eclipse. If I try to launch it
>>> a second time I get a
>>>
>>> "message: cannot find model Map1"
>>>
>>> .. My launch configuration includes one metamodel that is referenced
>>> by URI and is actually a custom extension to Ecore. I remember some
>>> problems with locked resources but in my case I can't understand why
>>> this should happen. If I use any other metamodel by URI but mine
>>> everything works fine.
>>>
>>> Does anyone know how to deal with this ATL behavior?
>>>
>>> Cheers,
>>> Michael
Re: [ATL] Transformation only executes once [message #32004 is a reply to message #31969] Mon, 16 April 2007 15:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: strommer.big.tuwien.ac.at

hi!

Loading the ecore model was my first approach. I got the following warnings:

Warning: metamodel contains several classifiers with same name: EAttribute
Warning: metamodel contains several classifiers with same name:
ecore::EAttribute
Warning: metamodel contains several classifiers with same name: EAnnotation
Warning: metamodel contains several classifiers with same name:
ecore::EAnnotation
Warning: metamodel contains several classifiers with same name: EClass
Warning: metamodel contains several classifiers with same name:
ecore::EClass
.....

Our metamodel is designed as an extension to Ecore that allows us to
have mappings between EClasses, EAttributes, etc. So we loaded the Ecore
metamodel as resource into the Ecore editor to use Ecore classes as
super classes in our mapping metamodel. The generated EMF plugins worked
fine, also did the GMF editor based on these plugins.

I just downloaded the latest ATL and AM3 versions from cvs and tried the
"register metamodel" funtionality but this made ATL not work in the
first run.

Thx for the help,
Michael


Frédéric Jouault schrieb:
> Hello,
>
> Could you please try to load your Ecore metamodel instead of using the
> registered version? This may help us diagnose the problem.
>
>
> Regards,
>
> Frédéric Jouault
>
>
> Michael Strommer wrote:
>> hi!
>>
>> I just register the metamodel with the generated EMF plugin.
>>
>> Best regards,
>> Michael
>>
>>
>> Frédéric Jouault schrieb:
>>> Hello,
>>>
>>> How do you register your metamodel?
>>> As a plugin, or using the "Register metamodel" action?
>>>
>>>
>>> Regards,
>>>
>>> Frédéric Jouault
>>>
>>> Michael Strommer wrote:
>>>> hi!
>>>>
>>>> I'm having a problem concerning the execution of an ATL
>>>> transformation. The thing is that I can only execute the
>>>> transformation once every time I start eclipse. If I try to launch
>>>> it a second time I get a
>>>>
>>>> "message: cannot find model Map1"
>>>>
>>>> .. My launch configuration includes one metamodel that is referenced
>>>> by URI and is actually a custom extension to Ecore. I remember some
>>>> problems with locked resources but in my case I can't understand why
>>>> this should happen. If I use any other metamodel by URI but mine
>>>> everything works fine.
>>>>
>>>> Does anyone know how to deal with this ATL behavior?
>>>>
>>>> Cheers,
>>>> Michael
Re: [ATL] Transformation only executes once [message #32039 is a reply to message #32004] Mon, 16 April 2007 16:21 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,

Well, if you extend Ecore, then is your metamodel actually a
metametamodel? In this case, you might need to do some modifications to
EMF to use your metametamodel in place of Ecore.

Do you refer to Ecore elements or did you copy them in your
(meta)metamodel? It is a bit strange that the EMF driver finds several
classes named EAttribute, for instance.

I am not sure what you mean by "mappings between EClasses, EAttributes,
etc." but it sounds like model weaving would be a much simpler approach
to me.


Regards,

Frédéric Jouault


Michael Strommer wrote:
> hi!
>
> Loading the ecore model was my first approach. I got the following
> warnings:
>
> Warning: metamodel contains several classifiers with same name: EAttribute
> Warning: metamodel contains several classifiers with same name:
> ecore::EAttribute
> Warning: metamodel contains several classifiers with same name: EAnnotation
> Warning: metamodel contains several classifiers with same name:
> ecore::EAnnotation
> Warning: metamodel contains several classifiers with same name: EClass
> Warning: metamodel contains several classifiers with same name:
> ecore::EClass
> .....
>
> Our metamodel is designed as an extension to Ecore that allows us to
> have mappings between EClasses, EAttributes, etc. So we loaded the Ecore
> metamodel as resource into the Ecore editor to use Ecore classes as
> super classes in our mapping metamodel. The generated EMF plugins worked
> fine, also did the GMF editor based on these plugins.
>
> I just downloaded the latest ATL and AM3 versions from cvs and tried the
> "register metamodel" funtionality but this made ATL not work in the
> first run.
>
> Thx for the help,
> Michael
>
>
> Frédéric Jouault schrieb:
>> Hello,
>>
>> Could you please try to load your Ecore metamodel instead of using the
>> registered version? This may help us diagnose the problem.
>>
>>
>> Regards,
>>
>> Frédéric Jouault
>>
>>
>> Michael Strommer wrote:
>>> hi!
>>>
>>> I just register the metamodel with the generated EMF plugin.
>>>
>>> Best regards,
>>> Michael
>>>
>>>
>>> Frédéric Jouault schrieb:
>>>> Hello,
>>>>
>>>> How do you register your metamodel?
>>>> As a plugin, or using the "Register metamodel" action?
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Frédéric Jouault
>>>>
>>>> Michael Strommer wrote:
>>>>> hi!
>>>>>
>>>>> I'm having a problem concerning the execution of an ATL
>>>>> transformation. The thing is that I can only execute the
>>>>> transformation once every time I start eclipse. If I try to launch
>>>>> it a second time I get a
>>>>>
>>>>> "message: cannot find model Map1"
>>>>>
>>>>> .. My launch configuration includes one metamodel that is
>>>>> referenced by URI and is actually a custom extension to Ecore. I
>>>>> remember some problems with locked resources but in my case I can't
>>>>> understand why this should happen. If I use any other metamodel by
>>>>> URI but mine everything works fine.
>>>>>
>>>>> Does anyone know how to deal with this ATL behavior?
>>>>>
>>>>> Cheers,
>>>>> Michael
Re: [ATL] Transformation only executes once [message #32320 is a reply to message #32039] Tue, 17 April 2007 08:37 Go to previous message
Eclipse UserFriend
Originally posted by: strommer.big.tuwien.ac.at

Hi,

you are right, it is a metametamodel. in our mapping extension to Ecore
we reference all Ecore elements and did not copy them. (The EMF code
generator provides a feature to reference existing genmodels)

We do model weaving, but we would like to have a graphical editor and
our own mapping language. That's why we do not use the model weaver or a
weaving metamodel extension.

I will try to debug the ATL source to find out why the transformation
works only once.

Regards,
Michael



Frédéric Jouault schrieb:
> Hi,
>
> Well, if you extend Ecore, then is your metamodel actually a
> metametamodel? In this case, you might need to do some modifications to
> EMF to use your metametamodel in place of Ecore.
>
> Do you refer to Ecore elements or did you copy them in your
> (meta)metamodel? It is a bit strange that the EMF driver finds several
> classes named EAttribute, for instance.
>
> I am not sure what you mean by "mappings between EClasses, EAttributes,
> etc." but it sounds like model weaving would be a much simpler approach
> to me.
>
>
> Regards,
>
> Frédéric Jouault
>
>
> Michael Strommer wrote:
>> hi!
>>
>> Loading the ecore model was my first approach. I got the following
>> warnings:
>>
>> Warning: metamodel contains several classifiers with same name:
>> EAttribute
>> Warning: metamodel contains several classifiers with same name:
>> ecore::EAttribute
>> Warning: metamodel contains several classifiers with same name:
>> EAnnotation
>> Warning: metamodel contains several classifiers with same name:
>> ecore::EAnnotation
>> Warning: metamodel contains several classifiers with same name: EClass
>> Warning: metamodel contains several classifiers with same name:
>> ecore::EClass
>> .....
>>
>> Our metamodel is designed as an extension to Ecore that allows us to
>> have mappings between EClasses, EAttributes, etc. So we loaded the
>> Ecore metamodel as resource into the Ecore editor to use Ecore
>> classes as super classes in our mapping metamodel. The generated EMF
>> plugins worked fine, also did the GMF editor based on these plugins.
>>
>> I just downloaded the latest ATL and AM3 versions from cvs and tried
>> the "register metamodel" funtionality but this made ATL not work in
>> the first run.
>>
>> Thx for the help,
>> Michael
>>
>>
>> Frédéric Jouault schrieb:
>>> Hello,
>>>
>>> Could you please try to load your Ecore metamodel instead of using
>>> the registered version? This may help us diagnose the problem.
>>>
>>>
>>> Regards,
>>>
>>> Frédéric Jouault
>>>
>>>
>>> Michael Strommer wrote:
>>>> hi!
>>>>
>>>> I just register the metamodel with the generated EMF plugin.
>>>>
>>>> Best regards,
>>>> Michael
>>>>
>>>>
>>>> Frédéric Jouault schrieb:
>>>>> Hello,
>>>>>
>>>>> How do you register your metamodel?
>>>>> As a plugin, or using the "Register metamodel" action?
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> Frédéric Jouault
>>>>>
>>>>> Michael Strommer wrote:
>>>>>> hi!
>>>>>>
>>>>>> I'm having a problem concerning the execution of an ATL
>>>>>> transformation. The thing is that I can only execute the
>>>>>> transformation once every time I start eclipse. If I try to launch
>>>>>> it a second time I get a
>>>>>>
>>>>>> "message: cannot find model Map1"
>>>>>>
>>>>>> .. My launch configuration includes one metamodel that is
>>>>>> referenced by URI and is actually a custom extension to Ecore. I
>>>>>> remember some problems with locked resources but in my case I
>>>>>> can't understand why this should happen. If I use any other
>>>>>> metamodel by URI but mine everything works fine.
>>>>>>
>>>>>> Does anyone know how to deal with this ATL behavior?
>>>>>>
>>>>>> Cheers,
>>>>>> Michael
Previous Topic:[ATL] EBNF Injection warnings - with MDR
Next Topic:CPL2SPL sample does not work with ATL_bundle eclipse
Goto Forum:
  


Current Time: Tue Mar 19 08:51:49 GMT 2024

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

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

Back to the top