• Post Reply Bookmark Topic Watch Topic
  • New Topic

XA Exception in Enterprise Application  RSS feed

 
Mohsin Kayal
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

We are developing an enterprise application (runs under IBM Websphere Application Server 5.1) that contains MDB which reads messages from queues (IBM Websphere MQ 5.3 CSD8) and inserts the message in a table (Oracle 9i DB). We are using 2PC for both queue and DB. When running our application we are getting the following exception:

7e6083f MCWrapper E J2CA0081E: Method destroy failed while trying to execute method destroy on ManagedConnection com.ibm.ejs.jms.JMSManagedQueueSession@3b17c836
physical session = com.ibm.mq.jms.MQXAQueueSession@35380836
session type = XA_SESSION
enlisted = false
open session handles = []
managed session factory = com.ibm.ejs.jms.JMSManagedQueueSessionFactory@1c980834 from resource No longer available. Caught exception: javax.resource.spi.ResourceAdapterInternalException: Failed to close session
at com.ibm.ejs.jms.JMSCMUtils.mapToResourceException(JMSCMUtils.java:125)
at com.ibm.ejs.jms.JMSManagedSession.destroy(JMSManagedSession.java:521)
at com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:1310)
at com.ibm.ejs.j2c.poolmanager.FreePool.removeParkedConnection(FreePool.java:523)
at com.ibm.ejs.j2c.poolmanager.PoolManager.quiesce(PoolManager.java:1052)
at com.ibm.ejs.j2c.ConnectionFactoryDetails.freeResources(ConnectionFactoryDetails.java:137)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.freeConnectionFactory(ConnectionFactoryBuilderImpl.java:782)
at com.ibm.ejs.jms.JMSManagedConnection.destroy(JMSManagedConnection.java:648)
at com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:1310)
at com.ibm.ejs.j2c.poolmanager.FreePool.cleanupAndDestroyMCWrapper(FreePool.java:468)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reclaimConnections(PoolManager.java:2627)
at com.ibm.ejs.j2c.poolmanager.PoolManager.executeTask(PoolManager.java:2551)
at com.ibm.ejs.j2c.poolmanager.TaskTimer.executeTask(TaskTimer.java:77)
at com.ibm.ejs.j2c.poolmanager.TaskTimer.run(TaskTimer.java:106)
---- Begin backtrace for Nested Throwables
javax.jms.JMSException: MQJMS2012: XACLOSE failed
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:530)
at com.ibm.mq.jms.MQXASession.close(MQXASession.java:130)
at com.ibm.mq.jms.MQXAQueueSession.close(MQXAQueueSession.java:89)
at com.ibm.ejs.jms.JMSManagedSession.destroy(JMSManagedSession.java:516)
at com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:1310)
at com.ibm.ejs.j2c.poolmanager.FreePool.removeParkedConnection(FreePool.java:523)
at com.ibm.ejs.j2c.poolmanager.PoolManager.quiesce(PoolManager.java:1052)
at com.ibm.ejs.j2c.ConnectionFactoryDetails.freeResources(ConnectionFactoryDetails.java:137)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.freeConnectionFactory(ConnectionFactoryBuilderImpl.java:782)
at com.ibm.ejs.jms.JMSManagedConnection.destroy(JMSManagedConnection.java:648)
at com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:1310)
at com.ibm.ejs.j2c.poolmanager.FreePool.cleanupAndDestroyMCWrapper(FreePool.java:468)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reclaimConnections(PoolManager.java:2627)
at com.ibm.ejs.j2c.poolmanager.PoolManager.executeTask(PoolManager.java:2551)
at com.ibm.ejs.j2c.poolmanager.TaskTimer.executeTask(TaskTimer.java:77)
at com.ibm.ejs.j2c.poolmanager.TaskTimer.run(TaskTimer.java:106)
---- Begin backtrace for Nested Throwables
javax.transaction.xa.XAException: XA operation failed, see errorCode
at com.ibm.mq.MQXAResource.close(MQXAResource.java:153)
at com.ibm.mq.jms.MQXASession.close(MQXASession.java:123)
at com.ibm.mq.jms.MQXAQueueSession.close(MQXAQueueSession.java:89)
at com.ibm.ejs.jms.JMSManagedSession.destroy(JMSManagedSession.java:516)
at com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:1310)
at com.ibm.ejs.j2c.poolmanager.FreePool.removeParkedConnection(FreePool.java:523)
at com.ibm.ejs.j2c.poolmanager.PoolManager.quiesce(PoolManager.java:1052)
at com.ibm.ejs.j2c.ConnectionFactoryDetails.freeResources(ConnectionFactoryDetails.java:137)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.freeConnectionFactory(ConnectionFactoryBuilderImpl.java:782)
at com.ibm.ejs.jms.JMSManagedConnection.destroy(JMSManagedConnection.java:648)
at com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:1310)
at com.ibm.ejs.j2c.poolmanager.FreePool.cleanupAndDestroyMCWrapper(FreePool.java:468)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reclaimConnections(PoolManager.java:2627)
at com.ibm.ejs.j2c.poolmanager.PoolManager.executeTask(PoolManager.java:2551)
at com.ibm.ejs.j2c.poolmanager.TaskTimer.executeTask(TaskTimer.java:77)
at com.ibm.ejs.j2c.poolmanager.TaskTimer.run(TaskTimer.java:106)


Could any one help us in this regard?

Thanks
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!