Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Validation failed unexpectedly: java.lang.ArrayStoreException
Validation failed unexpectedly: java.lang.ArrayStoreException [message #667771] Mon, 02 May 2011 07:24
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi all,

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.
at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.jav a:124)
at org.eclipse.emf.ecore.util.EcoreEList.resolve(EcoreEList.jav a:172)

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?

In either case, hope this helps someone else.

Previous Topic:Shortcuts to read-only models
Next Topic:Re: Cannot modify resource set when changing a reference to another model in the platform
Goto Forum:

Current Time: Thu Mar 04 12:44:06 GMT 2021

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

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

Back to the top