Using JMS OTD or JMS Session, rollback message receives exception in Java CAPS6 (Doc ID 1025863.1)

Last updated on NOVEMBER 01, 2016

Applies to:

Oracle Java CAPS Enterprise Service Bus - Version R6.3 and later
Information in this document applies to any platform.
Checked for currency on 18-02-2011
***Checked for relevance on 11-Feb-2013***

Symptoms

The following exception is thrown when trying to rollback a message in case of exceptions. The following exception occurs even when not using XA connector pool and using LocalTransaction enabled JCA connector pool as configured in the Glassfish admin console.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[#|2008-08-04T16:03:17.329-0700|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=30;_ThreadName=p: thread-pool-1; w: 6;|
Exception Occured while rolling back:[C4069]: Cannot perform commit or rollback on an XASession.|#]

[#|2008-08-04T16:03:17.329-0700|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=30;_ThreadName=p: thread-pool-1; w: 6;_RequestID=7e09481b-66ea-4d88-b426-0e7fbb99e166;|
javax.jms.TransactionInProgressException: [C4069]: Cannot perform commit or rollback on an XASession.
at com.sun.messaging.jmq.jmsclient.XASessionImpl.rollback(XASessionImpl.java:159)
at com.stc.jmsjca.core.JSession.rollback(JSession.java:741)
at com.stc.jmsjca.core.WSession.rollback(WSession.java:336)
at testpackage.ProcessTCPMessageBean.ProcessMessage_new(ProcessTCPMessageBean.java:69)
at testpackage.ProcessTCPMessageBean._invoke_ProcessMessage_new(ProcessTCPMessageBean.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2899)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3990)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:127)
at $Proxy104._invoke_ProcessMessage_new(Unknown Source)
at com.regence.cache.TestTCPIP.onConnection(TestTCPIP.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2899)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3990)
at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:1111)
at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:74)
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:179)
at $Proxy105.onConnection(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.stc.connector.framework.eway.EndpointProxy.invoke(EndpointProxy.java:177)
at $Proxy98.onConnection(Unknown Source)
at com.stc.connector.tcpip.model.server.TCPIPServerWorkerTask.run(TCPIPServerWorkerTask.java:256)
at com.stc.connector.tcpip.model.server.TCPIPServerWorker.run(TCPIPServerWorker.java:91)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
|#]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms