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.
 
URL LANGUAGE SIZE(Bytes)
Readme US English 3501
 
Download package
What is DD?
DOWNLOAD RELEASE DATE LANGUAGE SIZE(Bytes) Download Options
PQ96203_Fix 12/2/2004 US English 1072764 FTP DD
 
Technical support
1-800-IBM-SERV (U.S. Only)
 
Problems (APARs) fixed
PQ96203
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java Transaction Service (JTS)
Operating system(s): HP-UX
Software version: 4.0.7
Software edition:
Reference #: 4008406
IBM Group: Software Group
Modified date: Dec 2, 2004