Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [2.3M5] Problems validating Ecore models
[2.3M5] Problems validating Ecore models [message #407476] Thu, 01 March 2007 16:28 Go to next message
Didier Villevalois is currently offline Didier VillevaloisFriend
Messages: 86
Registered: July 2009
Member
Hello,

I'm just moving to 2.3M5 and it's seems i'm not able to regenerate my
genmodels because of errors in my Ecore... I searched the newsgroup
without success. I also looked for a migration guide, but project plan
says there is not migration to apply.

While reloading the genmodel, the Reload wizard says:

Problems were detected while validating and converting the Ecore models

- (Warning) The generic type associated with the 'EEList' classifier
should have 1 type argument(s) to match the number of type arguments(s)
of the classifier
- (Warning) The generic type associated with the 'EJavaClass' classifier
should have 1 type argument(s) to match the number of type arguments(s)
of the classifier
- (Error) The instance type name '' is not well formed
- (Error) The instance type name '' is not well formed


I tried to edit by hand the ecore to change instanceClassName by
instanceTypeName but it does nothing. It is changed upon reopening the
ecore with the Sample Ecore Editor.

Thanks for your help.
Didier.
Re: [2.3M5] Problems validating Ecore models [message #407480 is a reply to message #407476] Thu, 01 March 2007 17:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30448
Registered: July 2009
Senior Member
Didier,

The dialog should allow you to continue even if there are errors and
warnings. I can't reproduce the problem that the Ecore editor sets the
instanceClassName to the empty string when the serialization has no name
set. Could you explain that issue in more detail perhaps with an
example that will let me reproduce the problem?


Ptitjes wrote:
> Hello,
>
> I'm just moving to 2.3M5 and it's seems i'm not able to regenerate my
> genmodels because of errors in my Ecore... I searched the newsgroup
> without success. I also looked for a migration guide, but project plan
> says there is not migration to apply.
>
> While reloading the genmodel, the Reload wizard says:
>
> Problems were detected while validating and converting the Ecore models
>
> - (Warning) The generic type associated with the 'EEList' classifier
> should have 1 type argument(s) to match the number of type arguments(s)
> of the classifier
> - (Warning) The generic type associated with the 'EJavaClass' classifier
> should have 1 type argument(s) to match the number of type arguments(s)
> of the classifier
> - (Error) The instance type name '' is not well formed
> - (Error) The instance type name '' is not well formed
>
>
> I tried to edit by hand the ecore to change instanceClassName by
> instanceTypeName but it does nothing. It is changed upon reopening the
> ecore with the Sample Ecore Editor.
>
> Thanks for your help.
> Didier.
>
Re: [2.3M5] Problems validating Ecore models [message #407483 is a reply to message #407480] Thu, 01 March 2007 18:12 Go to previous messageGo to next message
Didier Villevalois is currently offline Didier VillevaloisFriend
Messages: 86
Registered: July 2009
Member
Ok resolved! I noticed before that in earlier versions of EMF editor, it
created a empty instanceClassName="" when you put the caret in the
instance class name textarea. It seems to be corrected. However the new
editor does not remove the empty instanceClassName="" that still exists.

Thanks.

Ed Merks a écrit :
> Didier,
>
> The dialog should allow you to continue even if there are errors and
> warnings. I can't reproduce the problem that the Ecore editor sets the
> instanceClassName to the empty string when the serialization has no name
> set. Could you explain that issue in more detail perhaps with an
> example that will let me reproduce the problem?
>
>
> Ptitjes wrote:
>> Hello,
>>
>> I'm just moving to 2.3M5 and it's seems i'm not able to regenerate my
>> genmodels because of errors in my Ecore... I searched the newsgroup
>> without success. I also looked for a migration guide, but project plan
>> says there is not migration to apply.
>>
>> While reloading the genmodel, the Reload wizard says:
>>
>> Problems were detected while validating and converting the Ecore models
>>
>> - (Warning) The generic type associated with the 'EEList' classifier
>> should have 1 type argument(s) to match the number of type arguments(s)
>> of the classifier
>> - (Warning) The generic type associated with the 'EJavaClass' classifier
>> should have 1 type argument(s) to match the number of type arguments(s)
>> of the classifier
>> - (Error) The instance type name '' is not well formed
>> - (Error) The instance type name '' is not well formed
>>
>>
>> I tried to edit by hand the ecore to change instanceClassName by
>> instanceTypeName but it does nothing. It is changed upon reopening the
>> ecore with the Sample Ecore Editor.
>>
>> Thanks for your help.
>> Didier.
>>
Re: [2.3M5] Problems validating Ecore models [message #407486 is a reply to message #407483] Thu, 01 March 2007 18:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30448
Registered: July 2009
Senior Member
Didier,

Yes, this was a very annoying behavior. You need to hit the little
"Restore Default Value" toolbar button to get rid of the empty string.


Ptitjes wrote:
> Ok resolved! I noticed before that in earlier versions of EMF editor, it
> created a empty instanceClassName="" when you put the caret in the
> instance class name textarea. It seems to be corrected. However the new
> editor does not remove the empty instanceClassName="" that still exists.
>
> Thanks.
>
> Ed Merks a écrit :
>
>> Didier,
>>
>> The dialog should allow you to continue even if there are errors and
>> warnings. I can't reproduce the problem that the Ecore editor sets the
>> instanceClassName to the empty string when the serialization has no name
>> set. Could you explain that issue in more detail perhaps with an
>> example that will let me reproduce the problem?
>>
>>
>> Ptitjes wrote:
>>
>>> Hello,
>>>
>>> I'm just moving to 2.3M5 and it's seems i'm not able to regenerate my
>>> genmodels because of errors in my Ecore... I searched the newsgroup
>>> without success. I also looked for a migration guide, but project plan
>>> says there is not migration to apply.
>>>
>>> While reloading the genmodel, the Reload wizard says:
>>>
>>> Problems were detected while validating and converting the Ecore models
>>>
>>> - (Warning) The generic type associated with the 'EEList' classifier
>>> should have 1 type argument(s) to match the number of type arguments(s)
>>> of the classifier
>>> - (Warning) The generic type associated with the 'EJavaClass' classifier
>>> should have 1 type argument(s) to match the number of type arguments(s)
>>> of the classifier
>>> - (Error) The instance type name '' is not well formed
>>> - (Error) The instance type name '' is not well formed
>>>
>>>
>>> I tried to edit by hand the ecore to change instanceClassName by
>>> instanceTypeName but it does nothing. It is changed upon reopening the
>>> ecore with the Sample Ecore Editor.
>>>
>>> Thanks for your help.
>>> Didier.
>>>
>>>
Re: [2.3M5] Problems validating Ecore models [message #688508 is a reply to message #407486] Fri, 24 June 2011 20:31 Go to previous messageGo to next message
vipul_ssec is currently offline vipul_ssecFriend
Messages: 1
Registered: June 2011
Junior Member
I am also getting error while validating my ecore model as below - The default value literal " must be a valid literal of the attribute's type.

can anyone help me here.

thanks
vipul
Re: [2.3M5] Problems validating Ecore models [message #688512 is a reply to message #688508] Fri, 24 June 2011 20:37 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30448
Registered: July 2009
Senior Member
So you've restored the default value to null as suggested in the last
post in this thread?


forums-noreply@eclipse.org wrote:
> I am also getting error while validating my ecore model as below - The
> default value literal " must be a valid literal of the attribute's type.
>
> can anyone help me here.
>
> thanks
> vipul
Previous Topic:Visual Designer - EMF + GEF + JEM : opensourced at eclipse labs project
Next Topic:OPTION_ESCAPE_USING_CDATA
Goto Forum:
  


Current Time: Tue Sep 17 12:15:32 GMT 2019

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

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

Back to the top