[CDO] CDO 3, Hibernate Store -- HibernateQueryTest fails when run the second time [message #666858] |
Sat, 23 April 2011 09:44  |
Eclipse User |
|
|
|
WHAT I AM TRYING TO DO
I am trying to get started with CDO 3.0 by playing with the examples in
org.eclipse.emf.cdo.examples.hibernate.client
and
org.eclipse.emf.cdo.examples.hibernate.server
PROBLEM
When I run HibernateQueryTest the tests are ok.
When I run it a second time all tests fail. For instance
testSimpleQueries --result--> java.lang.IllegalStateException: Revision
was not registered:
Product@OID:http://www.eclipse.org/emf/CDO/examples/company/ 1.0.0#Product#6:0v1
OTHER INFO
I am aware of the FAQ in
http://wiki.eclipse.org/CDO/Hibernate_Store/Troubleshooting# Error_Rollback:_revision_was_not_registered
if that applies that to the example.
WHAT I ALREADY TRIED
When I restart the CDO server the tests in HibernateQueryTest works
once. After that, when run for a second time, the tests fail again.
QuickStartTest suceeds, even when run multiple times.
VERSION INFO
Eclipse 3.6 (Modelling Tools SR2)
CDO Model Repository SDK 3.0.0
Teneo 1.1.2
Hibernate 3.3.2
Downloaded the examples from the SVN R3_0_maintenance branch, that is from
http://dev.eclipse.org/svnroot/modeling/org.eclipse.emf.cdo/ branches/R3_0_maintenance/plugins/
I downloaded
org.eclipse.emf.cdo.examples.company
org.eclipse.emf.cdo.examples.hibernate.server
org.eclipse.emf.cdo.examples.hibernate.client
(I had to add dependencies to hsqldb to the server and EMF Change to the
client to resolve dependencies)
STACK TRACE
org.eclipse.emf.cdo.util.CommitException:
org.eclipse.net4j.signal.RemoteException:
java.lang.IllegalStateException: Revision was not registered:
Product@OID:http://www.eclipse.org/emf/CDO/examples/company/ 1.0.0#Product#6:0v1
at
org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl. commit(CDOTransactionImpl.java:921)
at
org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl. commit(CDOTransactionImpl.java:932)
at
org.eclipse.emf.cdo.examples.hibernate.client.HibernateQuery Test.setUp(HibernateQueryTest.java:85)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38Cla ssRunner.java:83)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.r un(JUnit4TestReference.java:49)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:197)
Caused by: org.eclipse.net4j.signal.RemoteException:
java.lang.IllegalStateException: Revision was not registered:
Product@OID:http://www.eclipse.org/emf/CDO/examples/company/ 1.0.0#Product#6:0v1
at
org.eclipse.net4j.signal.RequestWithConfirmation.setRemoteEx ception(RequestWithConfirmation.java:128)
at
org.eclipse.net4j.signal.SignalProtocol.handleRemoteExceptio n(SignalProtocol.java:535)
at
org.eclipse.net4j.signal.RemoteExceptionIndication.indicatin g(RemoteExceptionIndication.java:53)
at org.eclipse.net4j.signal.Indication.doExtendedInput(Indicati on.java:55)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:315)
at org.eclipse.net4j.signal.Indication.execute(Indication.java: 49)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:240)
at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
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)
Caused by: java.lang.IllegalStateException: Revision was not registered:
Product@OID:http://www.eclipse.org/emf/CDO/examples/company/ 1.0.0#Product#6:0v1
at
org.eclipse.emf.cdo.internal.server.TransactionCommitContext .addRevisions(TransactionCommitContext.java:902)
at
org.eclipse.emf.cdo.internal.server.TransactionCommitContext .updateInfraStructure(TransactionCommitContext.java:844)
at
org.eclipse.emf.cdo.internal.server.TransactionCommitContext .commit(TransactionCommitContext.java:346)
at
org.eclipse.emf.cdo.spi.server.InternalCommitContext$2.runLo op(InternalCommitContext.java:45)
at
org.eclipse.emf.cdo.spi.server.InternalCommitContext$2.runLo op(InternalCommitContext.java:1)
at
org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr ogressDistributor.java:96)
at
org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicatingCommit(CommitTransactionIndicat ion.java:316)
at
org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicating(CommitTransactionIndication.ja va:168)
at
org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicating(CommitTransactionIndication.ja va:122)
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:315)
at
org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:63)
at
org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In dicationWithMonitoring.java:63)
... 5 more
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03755 seconds