The feature is not a valid feature. (java.lang.IllegalArgumentException) [message #1692003] |
Sat, 11 April 2015 15:05  |
Eclipse User |
|
|
|
Hi folks,
a common Exception is arguing with me.
It is thrown through thoses lignes (which don't need any context, I'd say) :
EStructuralFeature [b]esfInstance [/b]= instance.eClass().getEStructuralFeature(esfRefName);
EcoreEList<DynamicEObjectImpl> listSonsInst = (EcoreEList<DynamicEObjectImpl>)instance.eClass().eGet([b]esfInstance[/b]);
Well, I just take the EReference out and, to add some stuff into it, I do the eGet on the meta from the ref I got from it.... Nothing fancy.
And this is the rising exception :
Exception in thread "main" java.lang.IllegalArgumentException: The feature 'subsubtopics' is not a valid feature
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEObjectImpl.java:1062)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1015)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:998)
at tcore.messages.Match.connectElement(Match.java:286)
...
at Main.main(Main.java:135)
I found on this forum a few clues about "containement" but I don't understand how I could play with that here...
Any body knows the definition of a "valid" feature ?
Thanks for your attention,
Edouard
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.23882 seconds