GMF migration to 2.2 : OCL error [message #236181] |
Wed, 15 July 2009 05:52  |
Eclipse User |
|
|
|
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 #478684 is a reply to message #478078] |
Thu, 06 August 2009 08:13   |
Eclipse User |
|
|
|
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
>>>
>>>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.12323 seconds