Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVT] undeterministic behaviour - sometimes classifiers disappear
[QVT] undeterministic behaviour - sometimes classifiers disappear [message #724826] Tue, 13 September 2011 09:57 Go to next message
Eclipse UserFriend
Originally posted by: Philipp Kalb

Hi

I have a very strange QVT problem.
To put it in a nutshell: My transformation works if I debug it but it
does not if I run it..

The basic idea of the transformation-script is to transform two
models(UML metamodel) into a common one (UML metamodel). I developed the
script using the QVT editor and used it as shown in the javaInvoke
example that I found in this newsgroup.
It actually works fine but the problem is that sometimes my transformed
objects "forget" their classifiers (and I need them...).
So I changed the script and tried to run it via the "QVTEditor Eclipse
plugin(s)". When I run it with "Run As..." I have classifiers in every 2
- 5 run, If I debug it they are always there.

I even added an "if" in the end of the transformation to check if the
classifiers are null but the "if" is never true. My idea now is that EMF
or QVT does something strange when storing the model. Is that possible?
Do you have any other ideas?

When I run the transformation in a while loop that checks if the results
are ok and if not run everything again, I get the right results after
2-5 runs...

Thanks for help
Philipp
Re: [QVT] undeterministic behaviour - sometimes classifiers disappear [message #725145 is a reply to message #724826] Wed, 14 September 2011 05:06 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi Philipp

One possibility is that you are getting confused by EMF's one time
resolution of eClass() 'proxies' and the reversion to proxies if the
referenced meta-model changes. From your description it is not clear
that you weren't performing different concurrent activities for Run
As/Debug As.

Try again, doing nothing else. If there's still a problem, I suggest
filing a Bugzilla with a simple repro.

Regards

Ed Willink

On 13/09/2011 10:57, Philipp Kalb wrote:
> Hi
>
> I have a very strange QVT problem.
> To put it in a nutshell: My transformation works if I debug it but it
> does not if I run it..
>
> The basic idea of the transformation-script is to transform two
> models(UML metamodel) into a common one (UML metamodel). I developed
> the script using the QVT editor and used it as shown in the javaInvoke
> example that I found in this newsgroup.
> It actually works fine but the problem is that sometimes my
> transformed objects "forget" their classifiers (and I need them...).
> So I changed the script and tried to run it via the "QVTEditor Eclipse
> plugin(s)". When I run it with "Run As..." I have classifiers in every
> 2 - 5 run, If I debug it they are always there.
>
> I even added an "if" in the end of the transformation to check if the
> classifiers are null but the "if" is never true. My idea now is that
> EMF or QVT does something strange when storing the model. Is that
> possible?
> Do you have any other ideas?
>
> When I run the transformation in a while loop that checks if the
> results are ok and if not run everything again, I get the right
> results after 2-5 runs...
>
> Thanks for help
> Philipp
Previous Topic:[QVT] Adding element to feature
Next Topic:[ATL] EMF VM testing
Goto Forum:
  


Current Time: Mon Dec 02 14:19:47 GMT 2024

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

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

Back to the top