OptimisticConcurrencyException When CMR Exists

(Doc ID 1379872.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.3.2 and later
Information in this document applies to any platform.

Symptoms

When one removes an EJB entity bean and creates it again in the same transaction and it has CMR associated with it, an OptimisticConcurrencyException is thrown while committing the transaction. 

Caused by: weblogic.ejb.OptimisticConcurrencyException: Instance/s of bean 'ArtSizeBean' in the batch was changed by another transaction. The primary key is unknown due to Oracle driver limitation.
at weblogic.ejb.container.manager.BaseEntityManager.executeUpdateStmt(BaseEntityManager.java:1073)
at weblogic.ejb.container.internal.TxManager$TxListener.executeUpdate(TxManager.java:874)
at weblogic.ejb.container.internal.TxManager$TxListener.access$200(TxManager.java:576)
at weblogic.ejb.container.internal.TxManager.executeUpdateOperations(TxManager.java:300)
at weblogic.ejb.container.manager.BaseEntityManager.executeUpdateStmt(BaseEntityManager.java:920)
at weblogic.ejb.container.internal.TxManager$TxListener.executeUpdate(TxManager.java:874)
at weblogic.ejb.container.internal.TxManager$TxListener.executeDBOperations(TxManager.java:834)
at weblogic.ejb.container.internal.TxManager$TxListener.beforeCompletion(TxManager.java:1054)
at weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1224)
at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1199)
at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:118)
at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1310)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2126)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:266)
... 15 more

 

Changes

Upgraded from WLS 8.1 to 10.3.2.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms