Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] ArrayIndexOutOfBounds in CDOModelUtil
[CDO] ArrayIndexOutOfBounds in CDOModelUtil [message #428943] Fri, 03 April 2009 07:26 Go to next message
Matthew Watson is currently offline Matthew WatsonFriend
Messages: 24
Registered: July 2009
Junior Member
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(CD OModelUtil.java:220)
at org.eclipse.emf.internal.cdo.CDOStore.convertToCDO(CDOStore. java:423)
at
org.eclipse.emf.internal.cdo.CDOObjectImpl.populateRevisionF eature(CDOObjectImpl.java:389)
at
org.eclipse.emf.internal.cdo.CDOObjectImpl.cdoInternalPostAt tach(CDOObjectImpl.java:326)
at
org.eclipse.emf.internal.cdo.CDOStateMachine$AttachTransitio n.execute(CDOStateMachine.java:603)
at
org.eclipse.emf.internal.cdo.CDOStateMachine$AttachTransitio n.execute(CDOStateMachine.java:1)
at
org.eclipse.net4j.util.fsm.FiniteStateMachine.process(Finite StateMachine.java:161)
at
org.eclipse.emf.internal.cdo.CDOStateMachine.attach2(CDOStat eMachine.java:225)
at
org.eclipse.emf.internal.cdo.CDOStateMachine.attach(CDOState Machine.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$ContentsC DOList.inverseAdd(CDOResourceImpl.java:1030)
at
org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.addUnique(DelegatingNotifyingListImpl.java:310)
at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList. java:307)
Re: [CDO] ArrayIndexOutOfBounds in CDOModelUtil [message #428946 is a reply to message #428943] Fri, 03 April 2009 07:55 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Matthew,

This bug is already fixed and available in M6b (just released).

Cheers
/Eike

----
http://thegordian.blogspot.com



Matthew Watson schrieb:
> 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(CD OModelUtil.java:220)
>
> at
> org.eclipse.emf.internal.cdo.CDOStore.convertToCDO(CDOStore. java:423)
> at
> org.eclipse.emf.internal.cdo.CDOObjectImpl.populateRevisionF eature(CDOObjectImpl.java:389)
>
> at
> org.eclipse.emf.internal.cdo.CDOObjectImpl.cdoInternalPostAt tach(CDOObjectImpl.java:326)
>
> at
> org.eclipse.emf.internal.cdo.CDOStateMachine$AttachTransitio n.execute(CDOStateMachine.java:603)
>
> at
> org.eclipse.emf.internal.cdo.CDOStateMachine$AttachTransitio n.execute(CDOStateMachine.java:1)
>
> at
> org.eclipse.net4j.util.fsm.FiniteStateMachine.process(Finite StateMachine.java:161)
>
> at
> org.eclipse.emf.internal.cdo.CDOStateMachine.attach2(CDOStat eMachine.java:225)
>
> at
> org.eclipse.emf.internal.cdo.CDOStateMachine.attach(CDOState Machine.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$ContentsC DOList.inverseAdd(CDOResourceImpl.java:1030)
>
> at
> org.eclipse.emf.common.notify.impl.DelegatingNotifyingListIm pl.addUnique(DelegatingNotifyingListImpl.java:310)
>
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList. java:307)
>


Previous Topic:Strategy for updating Eclipse with CDO and EMF
Next Topic:[Teneo] Discontinue Jpox support in Teneo 1.1 (Eclipse 3.5/EMF 2.5)?
Goto Forum:
  


Current Time: Tue Apr 16 16:07:34 GMT 2024

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

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

Back to the top