PQ86657; 5.0.2.5, 5.1.0.4: Return XAException info
in SystemException
Downloadable files
Abstract
XAException needs to be added to the SystemException
thrown on a receipt of a TransactionAssociationException.
Download Description
PQ86657 resolves the following problem:
ERROR DESCRIPTION
XAException information to be added to a SystemException thrown when a
TransactionAssociationException is caught.
USERS AFFECTED
All WebSphere Application Server users of XA resources.
PROBLEM DESCRIPTION
XAException.errorCode is not reported after an enlistResource() call
fails.
RECOMMENDATION
When a resource is enlisted in a transaction, the enlist may fail, in
which case a TransactionAssociationException is raised. This exception
contains the original XAException.errorCode. However, before returning to
the caller, the TransactionAssociationException is converted to a
SystemException at which point the original XAException.errorCode is lost.
This fix causes the XAEXception.errorCode to be returned in the
SystemException following a TransactionAssociationException as a result of
the enlistResource method. The errorCode is added to the end of the
message used to construct the SystemException, after the string
XAER_ERROR_CODE=.
For WebSphere Application Server Version 5.1, this fix causes the
XAEXception to be returned in the SystemException following a
TransactionAssociationException as a result of the enlistResource method.
The XAException is added to the SystemException by calling
initCause().
Prerequisites
Please download the UpdateInstaller below to install this fix.