Skip Headers

# Transaction Exceptions (23001 - 23015)

Previous

Next

`TransactionException` is a run-time exception that is raised when an error is encountered during a transaction. When this occurs, the message contains a reference to the error code and error message.

Format

    EXCEPTION [TOPLINK – error code]: Exception nameEXCEPTION DESCRIPTION: Message

Transaction Exception

    EXCEPTION [TOPLINK – 23001]: oracle.toplink.exceptions.TransactionExceptionEXCEPTION DESCRIPTION: Error looking up external Transaction resource under JNDI name.

23001: ERROR_DOING_JNDI_LOOKUP
  Cause: Error looking up external transaction resource under JNDI name `name`.
  Action: Examine the internal exception and take the appropriate action.

23002: ERROR_GETTING_TRANSACTION_STATUS
  Cause: Error obtaining the status of the current externally-managed transaction.
  Action: Examine the internal exception and take the appropriate action.

23003: ERROR_GETTING_TRANSACTION
  Cause: Error obtaining the current externally managed transaction.
  Action: Examine the internal exception and take the appropriate action.

23004: ERROR_BINDING_TO_TRANSACTION
  Cause: Error obtaining the transaction manager.
  Action: Examine the internal exception and take the appropriate action.

23005: ERROR_BEGINNING_TRANSACTION
  Cause: Error binding to the externally managed transaction.
  Action: Examine the internal exception and take the appropriate action.

23006: ERROR_COMMITTING_TRANSACTION
  Cause: Error beginning a new externally managed transaction.
  Action: Examine the internal exception and take the appropriate action.

23007: ERROR_ROLLING_BACK_TRANSACTION
  Cause: Error committing the externally managed transaction.
  Action: Examine the internal exception and take the appropriate action.

23008: ERROR_MARKING_TRANSACTION_FOR_ROLLBACK
  Cause: Error rolling back the externally managed transaction.
  Action: Examine the internal exception and take the appropriate action.

23009: ERROR_NO_TRANSACTION_ACTIVE
  Cause: Error marking the externally managed transaction for rollback.
  Action: Examine the internal exception and take the appropriate action.

23010: ERROR_INACTIVE_UOW
  Cause: No externally managed transaction is currently active for this thread.
  Action: Ensure that the transaction is still active.

23011: ERROR_OBTAINING_TRANSACTION_MANAGER
  Cause: A `UnitOfWork` was rendered inactive before the associated externally managed transaction was complete.
  Action: Examine the internal exception and take the appropriate action.

23012: ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED
  Cause: Attempt to use an `EntityTransaction` while using JTA. This is an invalid operation.
  Action: Examine the internal exception and take the appropriate action.

23013: CANNOT_ENLIST_MULTIPLE_DATASOURCES
  Cause: Attempt to enlist multiple data sources in the transaction.
  Action: Enlist only one data source per transaction.

23014: EXCEPTION_IN_PROXY_EXECUTION
  Cause: Exception occurred in `Proxy` execution.
  Action: Examine the internal exception and take the appropriate action.

23015: ERROR_NO_ENTITY_TRANSACTION_ACTIVE
  Cause: No entity transaction is currently active for this thread.
  Action: Ensure that the transaction is active.

For more information, see Transactions.