Exception "Error trying to format exception message: UnitOfWork [{0}] was rendered inactive before associated externally managed transaction was complete" In TopLink (Doc ID 1512106.1)

Last updated on DECEMBER 14, 2014

Applies to:

Oracle TopLink - Version 11.1.1.4.0 to 11.1.1.6.0 [Release Oracle11g]
Information in this document applies to any platform.

Symptoms

In TopLink 11.1.1.4.0, when database exception is encountered, e.g. when transaction times out, it
was found that EclipseLink outputs the following exception in log:
  
  [EL Warning]: 2012-09-28
  14:30:09.693--UnitOfWork(41434791)--Thread(Thread[[ACTIVE] ExecuteThread:
  '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled
  Threads])--Local Exception Stack:
  Exception [EclipseLink-23011] (Eclipse Persistence Services -
  2.1.2.v20101206-r8635):
  org.eclipse.persistence.exceptions.TransactionException
  Exception Description: Error trying to format exception message: UnitOfWork
  [{0}] was rendered inactive before associated externally managed transaction
  was complete. The arguments are: [Exception [EclipseLink-4022] (Eclipse
  Persistence Services - 2.1.2.v20101206-r8635):
  org.eclipse.persistence.exceptions.DatabaseException
  Exception Description: Accessor or its connection has been set to null.
  This can occur if the ClientSession or UnitOfWork was released in a seperate
  thread, for instance if a Timeout occurred.]
  at
  org.eclipse.persistence.exceptions.TransactionException.inactiveUnitOfWork(Tr
  ansactionException.java:118)
  at
  org.eclipse.persistence.transaction.AbstractSynchronizationListener.afterComp
  letion(AbstractSynchronizationListener.java:203)
  at
  org.eclipse.persistence.transaction.JTASynchronizationListener.afterCompletio
  n(JTASynchronizationListener.java:79)
  ... (truncated) ...


Error Details
=====================
Exception Description: Accessor or its connection has been set to null.
This can occur if the ClientSession or UnitOfWork was released in a seperate
thread, for instance if a Timeout occurred.

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