Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsValidation failed unexpectedly: java.lang.ArrayStoreException
https://www.eclipse.org/forums/index.php/mv/msg/208456/667771/#msg_667771
I was having an unusual issue with generating a XXX.gmfgen, or
validating an XXX.gmfmap:
Validation failed unexpectedly for 'Canvas Mapping'. See log for details.
java.lang.ArrayStoreException
at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.jav a:124)
at org.eclipse.emf.ecore.util.EcoreEList.resolve(EcoreEList.jav a:172)
at
org.eclipse.emf.ecore.util.EObjectResolvingEList.resolve(EOb jectResolvingEList.java:66)
...
As it turned out, the problem was that I had a Feature Label Mapping set
to display a feature that wasn't, by default, enabled in the .gmfmap
editor. In particular, I had an EClass Property with an EReference
'type' of eType XSDSimpleTypeDefinition.
Changing this mapping to a normal Label Mapping (manually, as the editor
would not allow changes ["An exception was ignored during command
execution"]) resolved the validation issue.
Is this an expected feature -- that is, that references typed to
external referenced metamodels cannot be used in Feature Label Mappings?
Perhaps the problem is that the XSD.edit plugin is not being provided?