[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] [CDO] ArrayIndexOutOfBounds in CDOModelUtil

Hi,

I'm using CDO 2.0M6 and get this exception when trying to add an object to a CDOResource. Running in the debugger shows the index is 170 and the type is a PositiveDecimal, which is one of our own types, extended from BigDecimal (the model is derived from XSD, so we have lots of custom data types).

Begs the question, does CDO support only the datatypes in this coreTypes array, i.e. types defined in the EcorePackage itself?

If it doesn't, a friendlier error message would be nice.

Thanks,
Matt

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 170
at org.eclipse.emf.cdo.common.model.CDOModelUtil.getCoreType(CDOModelUtil.java:220)
at org.eclipse.emf.internal.cdo.CDOStore.convertToCDO(CDOStore.java:423)
at org.eclipse.emf.internal.cdo.CDOObjectImpl.populateRevisionFeature(CDOObjectImpl.java:389)
at org.eclipse.emf.internal.cdo.CDOObjectImpl.cdoInternalPostAttach(CDOObjectImpl.java:326)
at org.eclipse.emf.internal.cdo.CDOStateMachine$AttachTransition.execute(CDOStateMachine.java:603)
at org.eclipse.emf.internal.cdo.CDOStateMachine$AttachTransition.execute(CDOStateMachine.java:1)
at org.eclipse.net4j.util.fsm.FiniteStateMachine.process(FiniteStateMachine.java:161)
at org.eclipse.emf.internal.cdo.CDOStateMachine.attach2(CDOStateMachine.java:225)
at org.eclipse.emf.internal.cdo.CDOStateMachine.attach(CDOStateMachine.java:192)
at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.attached(CDOResourceImpl.java:799)
at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.access$0(CDOResourceImpl.java:797)
at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl$ContentsCDOList.inverseAdd(CDOResourceImpl.java:1030)
at org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl.addUnique(DelegatingNotifyingListImpl.java:310)
at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:307)