Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO+Hibernate] ClassCastException: org.eclipse.emf.cdo.internal.common.id.CDOIDTempObjectImpl canno
[CDO+Hibernate] ClassCastException: org.eclipse.emf.cdo.internal.common.id.CDOIDTempObjectImpl canno [message #431229] Fri, 03 July 2009 12:05 Go to next message
David Stastny is currently offline David StastnyFriend
Messages: 4
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------080100060800020400000806
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

Hi,
I received another CCE. I am not sure if this one qualifies for a
bugzilla. Attachments contain stack trace, ecore model, hibernate mapping.

Here is my code:
<code>
CDOTransaction tx = ...
Resource resource =
tx.getOrCreateResource(CrmPackage.Literals.BUSINESS_ENTITY.g etName().toLowerCase());

BusinessEntity be =
CrmPackage.eINSTANCE.getCrmFactory().createBusinessEntity();
be.setCompanyName("Company " + System.currentTimeMillis());

resource.getContents().add(be);
resource.save(null); // Line 34 - see stack trace
</code>

And my setup:
Eclipse 3.5.0 (20090619-0625)
CDO 2.0.1 (R2_0_maintenance)
Teneo 1.1.0
Hibernate 3.3.1


Thanks in advance,
David

--------------080100060800020400000806
Content-Type: text/xml;
name="crm.hbm.xml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="crm.hbm.xml"

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NU WVBFIGhpYmVy
bmF0ZS1tYXBwaW5nIFBVQkxJQyAiLS8vSGliZXJuYXRlL0hpYmVybmF0ZSBN YXBwaW5nIERU
RCAzLjAvL0VOIiAiaHR0cDovL2hpYmVybmF0ZS5zb3VyY2Vmb3JnZS5uZXQv aGliZXJuYXRl
LW1hcHBpbmctMy4wLmR0ZCI+Cgo8aGliZXJuYXRlLW1hcHBpbmcgYXV0by1p bXBvcnQ9ImZh
bHNlIj4KCTxjbGFzcyBuYW1lPSJjb20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5p
cXVlPSJmYWxzZSIgbmFtZT0iYHBvc3RhbGNvZGVgIi8+CgkJPC9wcm9wZXJ0 eT4KCQk8cHJv
cGVydHkgbmFtZT0iY291bnRyeSIgbGF6eT0iZmFsc2UiIGluc2VydD0idHJ1 ZSIgdXBkYXRl
PSJ0cnVlIiBub3QtbnVsbD0iZmFsc2UiIHVuaXF1ZT0iZmFsc2UiIHR5cGU9 ImphdmEubGFu
Zy5TdHJpbmciPgoJCQk8Y29sdW1uIG5vdC1udWxsPSJmYWxzZSIgdW5pcXVl PSJmYWxzZSIg
bmFtZT0iYGNvdW50cnlgIi8+CgkJPC9wcm9wZXJ0eT4KCTwvY2xhc3M+Cjwv aGliZXJuYXRl
LW1hcHBpbmc+
--------------080100060800020400000806
Content-Type: text/xml;
name="crm.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="crm.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="crm"
nsURI="http://contract.media-sol.com/crm.ecore" nsPrefix="crm">
<eClassifiers xsi:type="ecore:EClass" name="BusinessEntity">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="maxLength" value="10"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="companyName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="secondaryName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="businessProhibited" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="valued" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="phoneNumber" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="faxNumber" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="emailAddress" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="homePageAddress" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="note" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="multiLine" value="true"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="people" upperBound="-1"
eType="#//ContactPerson" eOpposite="#//ContactPerson/company"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="addresses" upperBound="-1"
eType="#//Address" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="mainAddress" eType="#//Address">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="source" value="this.addresses"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="shippingAddress" eType="#//Address">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="source" value="this.addresses"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="billingAddress" eType="#//Address">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="source" value="this.addresses"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="rating" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="maxValue" value="10"/>
<details key="minValue" value="0"/>
<details key="render" value="spinner"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ContactPerson" eSuperTypes="#//Employee">
<eStructuralFeatures xsi:type="ecore:EReference" name="company" eType="#//BusinessEntity"
eOpposite="#//BusinessEntity/people">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="source" value="/crm/customers"/>
<details key="proposal" value="companyName"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Person">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="firstName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lastName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="addresses" upperBound="-1"
eType="#//Address" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="homeAddress" eType="#//Address">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="source" value="this.addresses"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="homePhone" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="cellPhone" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Employee" eSuperTypes="#//Person">
<eStructuralFeatures xsi:type="ecore:EReference" name="workAddress" eType="#//Address">
<eAnnotations source="http://contract.media-sol.com/UI">
<details key="source" value="this.addresses"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="department" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="position" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="workPhone" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Address">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="street" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="city" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="postalCode" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="country" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
</ecore:EPackage>

--------------080100060800020400000806
Content-Type: text/plain;
name="stack_trace.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="stack_trace.txt"

java.lang.ClassCastException: org.eclipse.emf.cdo.internal.common.id.CDOIDTempObjectImpl cannot be cast to org.eclipse.emf.cdo.server.hibernate.id.CDOIDHibernate
at org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOID UserType.nullSafeSet(CDOIDUserType.java:152)
at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:16 9)
at org.hibernate.persister.collection.AbstractCollectionPersist er.writeElement(AbstractCollectionPersister.java:777)
at org.hibernate.persister.collection.AbstractCollectionPersist er.recreate(AbstractCollectionPersister.java:1165)
at org.hibernate.action.CollectionRecreateAction.execute(Collec tionRecreateAction.java:58)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:27 9)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:171)
at org.hibernate.event.def.AbstractFlushingEventListener.perfor mExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(De faultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.write(HibernateStoreAccessor.java:393)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext Impl.write(TransactionCommitContextImpl.java:269)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication$1.runLoop(CommitTransactionIndication.java:73)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication$1.runLoop(CommitTransactionIndication.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr ogressDistributor.java:96)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicatingCommit(CommitTransactionIndication.ja va:325)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:198 )
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:140 )
at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating (IndicationWithMonitoring.java:84)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn put(IndicationWithResponse.java:90)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:63)
at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In dicationWithMonitoring.java:63)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unkno wn Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)



org.eclipse.net4j.util.transaction.TransactionException: Rollback in HibernateStore: java.lang.ClassCastException: org.eclipse.emf.cdo.internal.common.id.CDOIDTempObjectImpl cannot be cast to org.eclipse.emf.cdo.server.hibernate.id.CDOIDHibernate
at org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOID UserType.nullSafeSet(CDOIDUserType.java:152)
at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:16 9)
at org.hibernate.persister.collection.AbstractCollectionPersist er.writeElement(AbstractCollectionPersister.java:777)
at org.hibernate.persister.collection.AbstractCollectionPersist er.recreate(AbstractCollectionPersister.java:1165)
at org.hibernate.action.CollectionRecreateAction.execute(Collec tionRecreateAction.java:58)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:27 9)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:171)
at org.hibernate.event.def.AbstractFlushingEventListener.perfor mExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(De faultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.write(HibernateStoreAccessor.java:393)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext Impl.write(TransactionCommitContextImpl.java:269)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication$1.runLoop(CommitTransactionIndication.java:73)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication$1.runLoop(CommitTransactionIndication.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr ogressDistributor.java:96)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicatingCommit(CommitTransactionIndication.ja va:325)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:198 )
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:140 )
at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating (IndicationWithMonitoring.java:84)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn put(IndicationWithResponse.java:90)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:63)
at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In dicationWithMonitoring.java:63)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unkno wn Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

at org.eclipse.emf.internal.cdo.transaction.CDOSingleTransactio nStrategyImpl.commit(CDOSingleTransactionStrategyImpl.java:6 3)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl. commit(CDOTransactionImpl.java:598)
at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.save(CDOR esourceImpl.java:717)
at pokus.Service4.start(Service4.java:34)
at com.mediasol.commons.application.MediaSolApplication.start(M ediaSolApplication.java:58)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

--------------080100060800020400000806--
Re: [CDO+Hibernate] ClassCastException: org.eclipse.emf.cdo.internal.common.id.CDOIDTempObjectImpl c [message #431231 is a reply to message #431229] Fri, 03 July 2009 17:29 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6457
Registered: July 2009
Senior Member
David,

To me it looks like a bug in the HibernateSupport: Saving the resource
on client side means committing its transaction. Thereby new objects
with a temporary ID are sent to the server which should assign
permananet IDs before storing them in the back-end. It seems this
assignment is not properly done in this particular case. Martin?

I suggest to file a bugzilla with these infos.

Cheers
/Eike

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



David Stastny schrieb:
> Hi,
> I received another CCE. I am not sure if this one qualifies for a
> bugzilla. Attachments contain stack trace, ecore model, hibernate
> mapping.
>
> Here is my code:
> <code>
> CDOTransaction tx = ...
> Resource resource =
> tx.getOrCreateResource(CrmPackage.Literals.BUSINESS_ENTITY.g etName().toLowerCase());
>
>
> BusinessEntity be =
> CrmPackage.eINSTANCE.getCrmFactory().createBusinessEntity();
> be.setCompanyName("Company " + System.currentTimeMillis());
>
> resource.getContents().add(be);
> resource.save(null); // Line 34 - see stack trace
> </code>
>
> And my setup:
> Eclipse 3.5.0 (20090619-0625)
> CDO 2.0.1 (R2_0_maintenance)
> Teneo 1.1.0
> Hibernate 3.3.1
>
>
> Thanks in advance,
> David


Re: [CDO+Hibernate] ClassCastException: org.eclipse.emf.cdo.internal.common.id.CDOIDTempObjectImpl c [message #431232 is a reply to message #431231] Fri, 03 July 2009 18:40 Go to previous message
David Stastny is currently offline David StastnyFriend
Messages: 4
Registered: July 2009
Junior Member
Filed as http://bugs.eclipse.org/bugs/show_bug.cgi?id=282400
Previous Topic:Ecore2Java ant task
Next Topic:OneToMany not working as expected...
Goto Forum:
  


Current Time: Thu Dec 12 16:19:19 GMT 2019

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

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

Back to the top