Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF migration to 2.2 : OCL error
GMF migration to 2.2 : OCL error [message #236181] Wed, 15 July 2009 05:52 Go to next message
Eclipse UserFriend
Originally posted by: aurelien.pupier.esial.net

Hi,

I tried to migrate to GMF 2.2.

right-click and "migrate to 2.2" works fine except for OCL.

I have OCL for constarint in GMFMap. It works fine with the older version of GMF but now I have this kind of error :


Invalid expression body 'jonas::JOnASProfile::MINIMAL'. Cause: Invalid expression body 'jonas::JOnASProfile::MINIMAL'. Cause: Unknown type ([jonas, JOnASProfile, MINIMAL])
Invalid expression body 'self->javaeeservers->forAll(j1,j2 | j1.oclIsTypeOf(JOnAS) and j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies j1.oclAsType(JOnAS).instanceName <> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Invalid expression body 'self->javaeeservers->forAll(j1,j2 | j1.oclIsTypeOf(JOnAS) and j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies j1.oclAsType(JOnAS).instanceName <> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Unrecognized variable: (javaeeservers)


Is there known issues about it?
Why "type" or "variable" are not knew anymore?

Thanks for your help

Aurelien Pupier
Re: GMF migration to 2.2 : OCL error [message #236279 is a reply to message #236181] Thu, 16 July 2009 09:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I have the same issue using migrating my GMF model to 2.2. My OCL
constraints containing enumerations can not by parsed even though they
are valid according to the OCL console/interpreter. In particular I
cannot adress an element of the enumeration (e.g. Gender::male)
I tried using the enumeration full qualified and unqualified. Neither works.

Thanks for your effort.

Aurelien Pupier schrieb:
> Hi,
>
> I tried to migrate to GMF 2.2.
>
> right-click and "migrate to 2.2" works fine except for OCL.
>
> I have OCL for constarint in GMFMap. It works fine with the older
> version of GMF but now I have this kind of error :
>
>
> Invalid expression body 'jonas::JOnASProfile::MINIMAL'. Cause: Invalid
> expression body 'jonas::JOnASProfile::MINIMAL'. Cause: Unknown type
> ([jonas, JOnASProfile, MINIMAL])
> Invalid expression body 'self->javaeeservers->forAll(j1,j2 |
> j1.oclIsTypeOf(JOnAS) and j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies
> j1.oclAsType(JOnAS).instanceName <>
> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Invalid expression body
> 'self->javaeeservers->forAll(j1,j2 | j1.oclIsTypeOf(JOnAS) and
> j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies
> j1.oclAsType(JOnAS).instanceName <>
> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Unrecognized variable:
> (javaeeservers)
>
>
> Is there known issues about it?
> Why "type" or "variable" are not knew anymore?
>
> Thanks for your help
>
> Aurelien Pupier


--
---------------------------
Dipl.-Inf. Maik Wurdel
Stipendiat GRK MuSAMA
Lehrstuhl Softwaretechnik
Institut fuer Informatik Tel. : +49(0)381-498-7443
Universität Rostock e-mail: maik.wurdel@uni-rostock.de
Joachim Jungius Straße 9
D-18055 Rostock
---------------------------
Re: GMF migration to 2.2 : OCL error [message #237125 is a reply to message #236279] Tue, 21 July 2009 09:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aurelien.pupier.esial.net

posted bug : https://bugs.eclipse.org/bugs/show_bug.cgi?id=284126


Maik Wurdel a écrit :
> Hi,
>
> I have the same issue using migrating my GMF model to 2.2. My OCL
> constraints containing enumerations can not by parsed even though they
> are valid according to the OCL console/interpreter. In particular I
> cannot adress an element of the enumeration (e.g. Gender::male)
> I tried using the enumeration full qualified and unqualified. Neither
> works.
>
> Thanks for your effort.
>
> Aurelien Pupier schrieb:
>> Hi,
>>
>> I tried to migrate to GMF 2.2.
>>
>> right-click and "migrate to 2.2" works fine except for OCL.
>>
>> I have OCL for constarint in GMFMap. It works fine with the older
>> version of GMF but now I have this kind of error :
>>
>>
>> Invalid expression body 'jonas::JOnASProfile::MINIMAL'. Cause: Invalid
>> expression body 'jonas::JOnASProfile::MINIMAL'. Cause: Unknown type
>> ([jonas, JOnASProfile, MINIMAL])
>> Invalid expression body 'self->javaeeservers->forAll(j1,j2 |
>> j1.oclIsTypeOf(JOnAS) and j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies
>> j1.oclAsType(JOnAS).instanceName <>
>> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Invalid expression body
>> 'self->javaeeservers->forAll(j1,j2 | j1.oclIsTypeOf(JOnAS) and
>> j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies
>> j1.oclAsType(JOnAS).instanceName <>
>> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Unrecognized variable:
>> (javaeeservers)
>>
>>
>> Is there known issues about it?
>> Why "type" or "variable" are not knew anymore?
>>
>> Thanks for your help
>>
>> Aurelien Pupier
>
>
Re: GMF migration to 2.2 : OCL error [message #478078 is a reply to message #237125] Thu, 06 August 2009 04:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aurelien.pupier.esial.net

After a little amount of time... I find time to look deeper on it so :

bug was set as INVALID and it is right...

In fact the problem seems to be only if we have the enumerated definition in another .ecore.

I upload an example with the bug.

As it was set as fixed too, I don't permit me to reopened it all the more that the first description was not totally right.
Do I need to create a new?


Aurelien Pupier a écrit :
> posted bug : https://bugs.eclipse.org/bugs/show_bug.cgi?id=284126
>
>
> Maik Wurdel a écrit :
>> Hi,
>>
>> I have the same issue using migrating my GMF model to 2.2. My OCL
>> constraints containing enumerations can not by parsed even though they
>> are valid according to the OCL console/interpreter. In particular I
>> cannot adress an element of the enumeration (e.g. Gender::male)
>> I tried using the enumeration full qualified and unqualified. Neither
>> works.
>>
>> Thanks for your effort.
>>
>> Aurelien Pupier schrieb:
>>> Hi,
>>>
>>> I tried to migrate to GMF 2.2.
>>>
>>> right-click and "migrate to 2.2" works fine except for OCL.
>>>
>>> I have OCL for constarint in GMFMap. It works fine with the older
>>> version of GMF but now I have this kind of error :
>>>
>>>
>>> Invalid expression body 'jonas::JOnASProfile::MINIMAL'. Cause:
>>> Invalid expression body 'jonas::JOnASProfile::MINIMAL'. Cause:
>>> Unknown type ([jonas, JOnASProfile, MINIMAL])
>>> Invalid expression body 'self->javaeeservers->forAll(j1,j2 |
>>> j1.oclIsTypeOf(JOnAS) and j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies
>>> j1.oclAsType(JOnAS).instanceName <>
>>> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Invalid expression body
>>> 'self->javaeeservers->forAll(j1,j2 | j1.oclIsTypeOf(JOnAS) and
>>> j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies
>>> j1.oclAsType(JOnAS).instanceName <>
>>> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Unrecognized variable:
>>> (javaeeservers)
>>>
>>>
>>> Is there known issues about it?
>>> Why "type" or "variable" are not knew anymore?
>>>
>>> Thanks for your help
>>>
>>> Aurelien Pupier
>>
>>
Re: GMF migration to 2.2 : OCL error [message #478684 is a reply to message #478078] Thu, 06 August 2009 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aurelien.pupier.esial.net

Seems was not that too...

I can't extract an easy example but in my project it doesn't work.

As the error is : Unknown type ([jonas, JOnASProfile, MINIMAL])
It means that it can't find the jonas package, isn't it?
Because if it will but can't find my enumeration it will be Unknown type ([JOnASProfile, MINIMAL]), isn't it?

I loaded my .ecore with the jonas package : it appears in the list of the gmfmap.
So did I to precise other things? Is that the ns prefix URI which count? the name? the Ns prefix?
I set up all of them to jonas to try but seems that doesn't work anymore.

I remove my constraints and rewrite them but same effects.

Can it be possible that it comes from the migration?

Any ideas are welcome


Aurelien Pupier a écrit :
> After a little amount of time... I find time to look deeper on it so :
>
> bug was set as INVALID and it is right...
>
> In fact the problem seems to be only if we have the enumerated
> definition in another .ecore.
>
> I upload an example with the bug.
>
> As it was set as fixed too, I don't permit me to reopened it all the
> more that the first description was not totally right.
> Do I need to create a new?
>
>
> Aurelien Pupier a écrit :
>> posted bug : https://bugs.eclipse.org/bugs/show_bug.cgi?id=284126
>>
>>
>> Maik Wurdel a écrit :
>>> Hi,
>>>
>>> I have the same issue using migrating my GMF model to 2.2. My OCL
>>> constraints containing enumerations can not by parsed even though
>>> they are valid according to the OCL console/interpreter. In
>>> particular I cannot adress an element of the enumeration (e.g.
>>> Gender::male)
>>> I tried using the enumeration full qualified and unqualified. Neither
>>> works.
>>>
>>> Thanks for your effort.
>>>
>>> Aurelien Pupier schrieb:
>>>> Hi,
>>>>
>>>> I tried to migrate to GMF 2.2.
>>>>
>>>> right-click and "migrate to 2.2" works fine except for OCL.
>>>>
>>>> I have OCL for constarint in GMFMap. It works fine with the older
>>>> version of GMF but now I have this kind of error :
>>>>
>>>>
>>>> Invalid expression body 'jonas::JOnASProfile::MINIMAL'. Cause:
>>>> Invalid expression body 'jonas::JOnASProfile::MINIMAL'. Cause:
>>>> Unknown type ([jonas, JOnASProfile, MINIMAL])
>>>> Invalid expression body 'self->javaeeservers->forAll(j1,j2 |
>>>> j1.oclIsTypeOf(JOnAS) and j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies
>>>> j1.oclAsType(JOnAS).instanceName <>
>>>> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Invalid expression body
>>>> 'self->javaeeservers->forAll(j1,j2 | j1.oclIsTypeOf(JOnAS) and
>>>> j2.oclIsTypeOf(JOnAS) and j1 <> j2 implies
>>>> j1.oclAsType(JOnAS).instanceName <>
>>>> j1.oclAsTypeOf(JOnAS).instanceName)'. Cause: Unrecognized variable:
>>>> (javaeeservers)
>>>>
>>>>
>>>> Is there known issues about it?
>>>> Why "type" or "variable" are not knew anymore?
>>>>
>>>> Thanks for your help
>>>>
>>>> Aurelien Pupier
>>>
>>>
Re: GMF migration to 2.2 : OCL error [message #478703 is a reply to message #478684] Thu, 06 August 2009 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aurelien.pupier.esial.net

This is a multi-part message in MIME format.
--------------080603000005040606010405
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

If no more dummies mistake, I think I found in which case.
See attached.

It seems not working if there is a subnode which is declared in another .ecore.

You can compare with the same OCL constraint in the enclosed :
- With the supertypes : it works
- With a subType declared in the same .ecore of the declaration of the enumeration : it works
_ With a subType declared in another .ecore of the declaration of the enumeration (even if it is loaded) : it doesn't work

If someone can confirm that, (and let me hope I'm not so crazy :s)


Aurelien Pupier a
Re: GMF migration to 2.2 : OCL error [message #481006 is a reply to message #478703] Wed, 19 August 2009 06:44 Go to previous message
Eclipse UserFriend
Hello Aurelien,

This sample project really helps. I've corrected this error. Thank oyu for
investigating it!

-----------------
Alex Shatalin
Previous Topic:Double EditPart.java files
Next Topic:Drawing on the diagram surface
Goto Forum:
  


Current Time: Thu Sep 25 05:14:10 EDT 2025

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

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

Back to the top