Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CommitException: This transaction has conflicts
[CDO] CommitException: This transaction has conflicts [message #885168] Tue, 12 June 2012 14:54 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 750
Registered: July 2009
Senior Member
I have this scenario:

- Open Session 1
- Transaction 1
- create Object A

- Open Session 2
- Transaction 2
- create Object B
- commit Transaction 2

- query Object B using Transaction 1
- A (of Transaction 1) references B (of Transaction 1)
- commit Transaction 1

=> CommitException: This transaction has conflicts
=> transaction1.getConflicts(): [CDOResource@OID:http://www.eclipse.org/emf/CDO/Eresource/4.0.0#CDOResource#2]

This only happens if the CDOResource does not contain any B objects.
If the CDOResource already has a B object, the commit will succeed...

I am using git master. Any hints?
Re: [CDO] CommitException: This transaction has conflicts [message #885171 is a reply to message #885168] Tue, 12 June 2012 14:57 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 750
Registered: July 2009
Senior Member
Note:
Object A is added to the CDOResource (there is only one resource in the backend) after its creation.
Same for Object B.
Re: [CDO] CommitException: This transaction has conflicts [message #885178 is a reply to message #885171] Tue, 12 June 2012 15:07 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 750
Registered: July 2009
Senior Member
Note 2:
There is only one session, i.e. there is no step opening Session 2...
Re: [CDO] CommitException: This transaction has conflicts [message #885681 is a reply to message #885178] Wed, 13 June 2012 12:32 Go to previous messageGo to next message
Eike Stepper is currently offline Eike Stepper
Messages: 5545
Registered: July 2009
Senior Member
Hi Erdal,

Please submit a bugzilla. Do you already have a test case at hand?

Cheers
/Eike

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



Am 12.06.2012 17:07, schrieb Erdal Karaca:
> Note 2:
> There is only one session, i.e. there is no step opening Session 2...
Re: [CDO] CommitException: This transaction has conflicts [message #990013 is a reply to message #885681] Mon, 10 December 2012 13:26 Go to previous message
Torsten Scholz is currently offline Torsten Scholz
Messages: 1
Registered: December 2012
Junior Member
Hi Erdal,

i have the same problem. See https: //bugs.eclipse.org/bugs/show_bug.cgi?id=396181


Regards,
Torsten
Previous Topic:[Teneo] Using @Embedded
Next Topic:[CDO/Hibernate] detaching objects with references
Goto Forum:
  


Current Time: Sat Oct 25 15:19:49 GMT 2014

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

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