PQ96203; 4.0.7: JMSException MQJMS1068: Failed to
obtain XAResource
Downloadable files
Abstract
User of WebSphere Application Server experiences
"JMSException MQJMS1068: Failed to obtain XAResource"
Download Description
PQ96203 resolves the following problem:
Environment:
WebSphere® Application Server V4.0.5, WebSphere Application Server
Enterprise Edition V4.1 and
WebSphere MQ™ V5.3
Short Description:
J2EE™ application sometimes fails to place mesage using JMS into WebSphere
MQ exceptions from application's log files:
2004-06-28 22:19:14,738 DEBUG [Thread-28] ipgw.mdb.
IpgwMatchMDBClientBean sendNewBlockFile: got JMSException
[MQJMS1068:
failed to obtain XAResource]
javax.jms.JMSException: MQJMS1068: failed to obtain XAResource
at
com.ibm.mq.jms.services.ConfigEnvironment.newException
(ConfigEnvironment.java:540)
at
com.ibm.mq.jms.MQXAQueueConnection.createXAQueueSession
(MQXAQueueConnection.java:96)
at com.ibm.ejs.jms.mq.JMSWrapXAQueueConnection.
internalCreateXAQueueSession(JMSWrapXAQueueConnection.java:309
)
at
com.ibm.ejs.jms.mq.JMSWrapXAQueueSession.createXASession
(JMSWrapXAQueueSession.java:355)
...
The problem was triggered by "XA operation failed" error,
javax.transaction.xa.XAException, with error code -8. This
indicates XAER_DUPID or duplicate XA id.
WebSphere Application Server uses identityHashCode to generate the unique
XID. When two objects return the same identityHashCode, WebSphere
Application Server generates non-unique XIDs.
This APAR will store the RMIDs (as generated by JTS) in a table so
duplicate XIDs can be checked before passing them to the resource manager.
PROBLEM SUMMARY:
USERS AFFECTED:
All WebSphere Application Server users.
PROBLEM DESCRIPTION:
Duplicate XID generated for JMS resource.
RECOMMENDATION:
Application Server uses identityHashCode to generate the unique XID.When
two objects return the same identityHashCode, Application Server generates
non-unique XIDs.
Prerequisites
NONE
Installation instructions
Please review the readme.txt for detailed installation
instructions.