|
Re: IllegalArgumentException: The feature 'xxx' is not a valid feature [message #1728403 is a reply to message #1727865] |
Mon, 04 April 2016 04:34  |
Eclipse User |
|
|
|
Le 29/03/2016 16:19, Hulk Esp a écrit :
> Hi,
Hi.
> I am new to Sirius. I created a Viewpoint Specification Model (.odesign) and I am trying to create a representation of a model contained in a xmi file.
>
> When I click "Create a new representation" -> (Select a representation type) My diagram -> (Select a semantic element for the new representation) model.xmi the attached exception is thrown:
>
>
>
> The model contained in the xmi file was build based on an ecore that is already registered in Eclipse (it appears in the EMF Registry) and that ecore contains the 'isRoot' feature. What is strange is that it works perfectly in other machine with the same version of Eclipse and Sirius.
It is indeed strange that you get different behaviors on different
machines. Are you using exactly the same model/doing the same operations
on both? If not, they use different part of the VSM, and one may avoid
the buggy part.
> Any clues?
'isRoot' is not a typical feature name. Usually the feature would be
named 'root', and *the Java method* genrated to read its value would be
'isRoot'. If you have written Acceleo/MTL expressions to navigate in
your model, you should use the actual feature name, not the Java getter
method name, i.e. [self.root/] instead of [self.isRoot/].
Another possibility is that the Eclipse plug-ins which define your
metamodel is not actually available on one of the machines.
--
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03580 seconds