Skip to main content



      Home
Home » Modeling » EMF » [CDO] CDO 3, Hibernate Store -- HibernateQueryTest fails when run the second time
[CDO] CDO 3, Hibernate Store -- HibernateQueryTest fails when run the second time [message #666858] Sat, 23 April 2011 09:44 Go to next message
Eclipse UserFriend
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
Re: [CDO] CDO 3, Hibernate Store -- HibernateQueryTest fails when run the second time [message #667054 is a reply to message #666858] Tue, 26 April 2011 03:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi Goetz,

Have you tried this with CDO 4.0 already? It's almost feature complete and we hardly expect API breakage anymore. If the problem remains we'd need to wait for Martin as he mentioned in the other reply.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 23.04.2011 15:44, schrieb Goetz Botterweck:
> 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
>
>
Re: [CDO] CDO 3, Hibernate Store -- HibernateQueryTest fails when run the second time [message #667058 is a reply to message #667054] Tue, 26 April 2011 06:06 Go to previous messageGo to next message
Eclipse UserFriend
On 26/04/2011 10:10, Eike Stepper wrote:
> Hi Goetz,
>
> Have you tried this with CDO 4.0 already?

I am happy to try that.

What is the recommended way to get started with CDO 4.0?

Should I

1) Install the most recent stable build (Eclipse 3.7M6) and install CDO
via the Indigo update site or

2) Follow the instructions at
http://wiki.eclipse.org/CDO_Source_Installation

?
Re: [CDO] CDO 3, Hibernate Store -- HibernateQueryTest fails when run the second time [message #667162 is a reply to message #667058] Wed, 27 April 2011 03:27 Go to previous message
Eclipse UserFriend
Am 26.04.2011 12:06, schrieb Goetz Botterweck:
> On 26/04/2011 10:10, Eike Stepper wrote:
>> Hi Goetz,
>>
>> Have you tried this with CDO 4.0 already?
> I am happy to try that.
>
> What is the recommended way to get started with CDO 4.0?
>
> Should I
>
> 1) Install the most recent stable build (Eclipse 3.7M6) and install CDO
> via the Indigo update site or
>
> 2) Follow the instructions at
> http://wiki.eclipse.org/CDO_Source_Installation
Depends on what you intend to do with it, both should be possible ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:[CDO] Unable to install CDO Model Repository Tests DB 3.0.1 due to dependency on Postgresql
Next Topic:Is it safe patching Bug 51210 against 2.4.2
Goto Forum:
  


Current Time: Mon Jul 07 13:44:57 EDT 2025

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

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

Back to the top