5 Replies Latest reply on Jan 22, 2015 10:04 AM by Anders Staugaard

    javax.jms.IllegalStateException: Cannot find session with id

    Kap Jang Newbie

      Hi,

      When I made JMS queue as transacted, and have invoked many services (which are "one way" and not transacted) inside the pipeline, and goes through couple of times, but after then, I have following error

       

      2013-01-29 07:16:34,549 ERROR [org.jboss.messaging.util.ExceptionUtil] (WorkManager(2)-10) ConnectionEndpoint[6i-ocze0jch-1-3dwc0jch-eil45v-s501gs4] sendTransaction [1k-d2ag0jch-1-3dwc0jch-eil45v-s501gs4]

      ...

       

      2013-01-29 07:16:34,784 WARN  [com.arjuna.ats.jta.logging.loggerI18N] (WorkManager(2)-10) [com.arjuna.ats.internal.jta.resources.arjunacore.preparefailed] [com.arjuna.ats.internal.jta.resources.arjunacore.preparefailed] XAResourceRecord.prepare - prepare failed with exception XAException.XA_RBCOMMFAIL

      2013-01-29 07:16:34,784 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (WorkManager(2)-10) [com.arjuna.ats.arjuna.coordinator.BasicAction_36] - BasicAction.End() - prepare phase of action-id -53efdb30:73d:5107bd29:f7 failed.

      2013-01-29 07:16:34,799 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (WorkManager(2)-10) [com.arjuna.ats.arjuna.coordinator.BasicAction_38] - Action Aborting

      2013-01-29 07:16:34,815 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] (WorkManager(2)-10) Unexpected error delivering message delegator->JBossMessage[5568355509043206]:PERSISTENT, deliveryId=3

      java.lang.reflect.UndeclaredThrowableException

        at $Proxy516.onMessage(Unknown Source)

        at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:179)

       

      I found https://community.jboss.org/thread/80725 saying maximum number of prepared transactions reached in Postgres db side, (I'm using Oracle).

       

      I try to adjust in the <datasources> in xxx-ds.xml following properties, but still does not working.

      Is this something need to be done database?

      Any idea why I have this exception?

      Thanks for any comments, ideas

       

      -Kap

       

       

       

      <datasources>

          <no-tx-datasource>

              <jndi-name>xxx/cis-ds</jndi-name>

              <rar-name>jboss-local-jdbc.rar</rar-name>

              <use-java-context>true</use-java-context>

              <connection-definition>javax.sql.DataSource</connection-definition>

              <jmx-invoker-name>jboss:service=invoker,type=jrmp</jmx-invoker-name>

              <min-pool-size>0</min-pool-size>

              <max-pool-size>30</max-pool-size>                                                                 <== INCREASED

              <blocking-timeout-millis>30000</blocking-timeout-millis>

              <idle-timeout-minutes>30</idle-timeout-minutes>

              <prefill>false</prefill>

              <background-validation>false</background-validation>

              <background-validation-millis>0</background-validation-millis>

              <validate-on-match>true</validate-on-match>

              <statistics-formatter>org.jboss.resource.statistic.pool.JBossDefaultSubPoolStatisticFormatter</statistics-formatter>

              <isSameRM-override-value>false</isSameRM-override-value>

              <allocation-retry>0</allocation-retry>

              <allocation-retry-wait-millis>5000</allocation-retry-wait-millis>

              <security-domain-and-application xsi:type="securityMetaData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

              <metadata>

                  <type-mapping>Oracle11g</type-mapping>

              </metadata>

              <type-mapping>Oracle11g</type-mapping>

              <user-name>xxxx</user-name>

              <password>xxxx</password>

              <check-valid-connection-sql>SELECT * FROM DUAL</check-valid-connection-sql>

              <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>

              <prepared-statement-cache-size>10</prepared-statement-cache-size>                    <== INCREASED

              <share-prepared-statements>true</share-prepared-statements>

              <set-tx-query-timeout>true</set-tx-query-timeout>

              <query-timeout>60000</query-timeout>

              <use-try-lock>60000</use-try-lock>

              <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>

              <connection-url>jdbc:oracle:thin:@xxxx:1521:xxxx</connection-url>

          </no-tx-datasource>

      </datasources>

       

       

       

       

      Here is full log

      -----------------------------------------------

       

      xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">org.jnp.interfaces.NamingContextFactory</jbossesb:java.naming.factory.initial><jbossesb:java.naming.provider.url xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">172.16.68.61:1099</jbossesb:java.naming.provider.url><jbossesb:java.naming.factory.url.pkgs xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">org.jnp.interfaces</jbossesb:java.naming.factory.url.pkgs><jbossesb:destination-type xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">queue</jbossesb:destination-type><jbossesb:destination-name xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">queue/gsa-cis-las-esb-LoggingServiceQueue</jbossesb:destination-name><jbossesb:specification-version xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">1.1</jbossesb:specification-version><jbossesb:connection-factory xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">ConnectionFactory</jbossesb:connection-factory><jbossesb:persistent xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">true</jbossesb:persistent><jbossesb:acknowledge-mode xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">AUTO_ACKNOWLEDGE</jbossesb:acknowledge-mode><jbossesb:transacted xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">false</jbossesb:transacted><jbossesb:type xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">urn:jboss/esb/epr/type/jms</jbossesb:type></wsa:ReferenceProperties></wsa:From>

      2013-01-29 07:16:34,549 INFO  [STDOUT] (WorkManager(2)-10) ErrorHandlingAction::processSuccess:

      2013-01-29 07:16:34,549 ERROR [org.jboss.messaging.util.ExceptionUtil] (WorkManager(2)-10) ConnectionEndpoint[6i-ocze0jch-1-3dwc0jch-eil45v-s501gs4] sendTransaction [1k-d2ag0jch-1-3dwc0jch-eil45v-s501gs4]

      javax.jms.IllegalStateException: Cannot find session with id 898-hs9g0jch-1-xfx9sdch-8uiaky-p1w1gs4

                at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoint.java:866)

                at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:523)

                at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:106)

                at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeTarget(ConnectionAdvised$sendTransaction_N3268650789275322226.java)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

                at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:196)

                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 org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java)

                at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:86)

                at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:165)

                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

                at org.jboss.remoting.Client.invoke(Client.java:2070)

                at org.jboss.remoting.Client.invoke(Client.java:879)

                at org.jboss.remoting.Client.invoke(Client.java:867)

                at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)

                at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)

                at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$sendTransaction$aop(ClientConnectionDelegate.java:241)

                at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeTarget(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

                at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)

                at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:172)

                at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                at org.jboss.jms.client.delegate.ClientConnectionDelegate.sendTransaction(ClientConnectionDelegate.java)

                at org.jboss.jms.tx.ResourceManager.sendTransactionXA(ResourceManager.java:712)

                at org.jboss.jms.tx.ResourceManager.prepare(ResourceManager.java:359)

                at org.jboss.jms.tx.MessagingXAResource.prepare(MessagingXAResource.java:241)

                at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelPrepare(XAResourceRecord.java:264)

                at com.arjuna.ats.arjuna.coordinator.BasicAction.doPrepare(BasicAction.java:2919)

                at com.arjuna.ats.arjuna.coordinator.BasicAction.doPrepare(BasicAction.java:2876)

                at com.arjuna.ats.arjuna.coordinator.BasicAction.prepare(BasicAction.java:2419)

                at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1790)

                at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:94)

                at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:160)

                at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1431)

                at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)

                at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

                at org.jboss.soa.esb.listeners.jca.EndpointProxy.endTransaction(EndpointProxy.java:401)

                at org.jboss.soa.esb.listeners.jca.EndpointProxy.delivery(EndpointProxy.java:281)

                at org.jboss.soa.esb.listeners.jca.EndpointProxy.invoke(EndpointProxy.java:150)

                at $Proxy516.onMessage(Unknown Source)

                at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:179)

                at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:167)

                at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:879)

                at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_5784348.invoke(SessionAspect_z_handleRun_5784348.java)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:172)

                at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)

                at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)

                at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:236)

                at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

                at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                at java.lang.Thread.run(Thread.java:662)

      2013-01-29 07:16:34,784 WARN  [com.arjuna.ats.jta.logging.loggerI18N] (WorkManager(2)-10) [com.arjuna.ats.internal.jta.resources.arjunacore.preparefailed] [com.arjuna.ats.internal.jta.resources.arjunacore.preparefailed] XAResourceRecord.prepare - prepare failed with exception XAException.XA_RBCOMMFAIL

      2013-01-29 07:16:34,784 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (WorkManager(2)-10) [com.arjuna.ats.arjuna.coordinator.BasicAction_36] - BasicAction.End() - prepare phase of action-id -53efdb30:73d:5107bd29:f7 failed.

      2013-01-29 07:16:34,799 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] (WorkManager(2)-10) [com.arjuna.ats.arjuna.coordinator.BasicAction_38] - Action Aborting

      2013-01-29 07:16:34,815 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] (WorkManager(2)-10) Unexpected error delivering message delegator->JBossMessage[5568355509043206]:PERSISTENT, deliveryId=3

      java.lang.reflect.UndeclaredThrowableException

                at $Proxy516.onMessage(Unknown Source)

                at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:179)

                at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:167)

                at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:879)

                at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_5784348.invoke(SessionAspect_z_handleRun_5784348.java)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:172)

                at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)

                at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)

                at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:236)

                at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

                at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                at java.lang.Thread.run(Thread.java:662)

      Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction.

                at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1443)

                at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)

                at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

                at org.jboss.soa.esb.listeners.jca.EndpointProxy.endTransaction(EndpointProxy.java:401)

                at org.jboss.soa.esb.listeners.jca.EndpointProxy.delivery(EndpointProxy.java:281)

                at org.jboss.soa.esb.listeners.jca.EndpointProxy.invoke(EndpointProxy.java:150)

                ... 17 more

        • 1. Re: javax.jms.IllegalStateException: Cannot find session with id
          Tom Cunningham Master

          In the thread you linked, they found that message in their postgres logs - are you seeing anything in your Oracle logs?

          • 2. Re: javax.jms.IllegalStateException: Cannot find session with id
            Kap Jang Newbie

            I discusses with DBA, and he don't recognize anything related yet. I may try to recreate with him and search for it. I will update how it goes. Thanks

            • 3. Re: javax.jms.IllegalStateException: Cannot find session with id
              Kap Jang Newbie

              Here is update.

              I found there is another esb server is running (and even pointing same database), and when I shutdown other server, magically all the issues disappear.

              Since the other server is for testers, so I am trying to isolate issues, by creating new database for my esb server and very simple esb which just simply invoke a service in the pipeline (with transacted queue).

              When both testing and my esb servers are up, I still have following error

               

              ==============================================================

              2013-02-01 09:57:08,400 ERROR [org.jboss.messaging.util.ExceptionUtil] (WorkManager(2)-7) ConnectionEndpoint[fi-jqchgnch-1-cdwfgnch-3ngjdj-s501gs4] sendTransaction [xj-clbignch-1-cdwfgnch-3ngjdj-s501gs4]

              javax.jms.IllegalStateException: Cannot find session with id 5l-nw6ignch-1-e1kjench-botagn-p1w1gs4

                        at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoint.java:866)

                        at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:515)

                        at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:106)

                        at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeTarget(ConnectionAdvised$sendTransaction_N3268650789275322226.java)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

                        at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:196)

                        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 org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                        at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                        at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java)

                        at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:86)

                        at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:165)

                        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

                        at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

                        at org.jboss.remoting.Client.invoke(Client.java:2070)

                        at org.jboss.remoting.Client.invoke(Client.java:879)

                        at org.jboss.remoting.Client.invoke(Client.java:867)

                        at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)

                        at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)

                        at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$sendTransaction$aop(ClientConnectionDelegate.java:241)

                        at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeTarget(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

                        at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)

                        at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                        at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:172)

                        at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                        at org.jboss.jms.client.delegate.ClientConnectionDelegate.sendTransaction(ClientConnectionDelegate.java)

                        at org.jboss.jms.tx.ResourceManager.sendTransactionXA(ResourceManager.java:712)

                        at org.jboss.jms.tx.ResourceManager.commit(ResourceManager.java:392)

                        at org.jboss.jms.tx.MessagingXAResource.commit(MessagingXAResource.java:255)

                        at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelOnePhaseCommit(XAResourceRecord.java:811)

                        at com.arjuna.ats.arjuna.coordinator.BasicAction.onePhaseCommit(BasicAction.java:2656)

                        at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1784)

                        at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:94)

                        at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:160)

                        at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1431)

                        at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)

                        at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

                        at org.jboss.soa.esb.listeners.jca.EndpointProxy.endTransaction(EndpointProxy.java:401)

                        at org.jboss.soa.esb.listeners.jca.EndpointProxy.delivery(EndpointProxy.java:281)

                        at org.jboss.soa.esb.listeners.jca.EndpointProxy.invoke(EndpointProxy.java:150)

                        at $Proxy479.onMessage(Unknown Source)

                        at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:179)

                        at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:167)

                        at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:879)

                        at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_25093093.invoke(SessionAspect_z_handleRun_25093093.java)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                        at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:172)

                        at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                        at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)

                        at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)

                        at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:236)

                        at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

                        at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                        at java.lang.Thread.run(Thread.java:662)

              2013-02-01 09:57:08,415 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] (WorkManager(2)-7) Unexpected error delivering message delegator->JBossMessage[5569456637673472]:PERSISTENT, deliveryId=0

              java.lang.reflect.UndeclaredThrowableException

                        at $Proxy479.onMessage(Unknown Source)

                        at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:179)

                        at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:167)

                        at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:879)

                        at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_25093093.invoke(SessionAspect_z_handleRun_25093093.java)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                        at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:172)

                        at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)

                        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                        at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)

                        at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)

                        at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:236)

                        at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

                        at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                        at java.lang.Thread.run(Thread.java:662)

              Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction.

                        at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1443)

                        at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)

                        at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

                        at org.jboss.soa.esb.listeners.jca.EndpointProxy.endTransaction(EndpointProxy.java:401)

                        at org.jboss.soa.esb.listeners.jca.EndpointProxy.delivery(EndpointProxy.java:281)

                        at org.jboss.soa.esb.listeners.jca.EndpointProxy.invoke(EndpointProxy.java:150)

                        ... 17 more

              ================================================================

               

              And then I found that both servers using binding (-b 0.0.0.0), so I changed to local ip address instead in testing server

              Immediately, I got following in my local server console as below which shows definitely both servers interfere each other in some way

               

               

              [LeasePinger] org.jboss.remoting.LeasePinger$LeaseTimerTask@xxx failed to ping to server: Can not get connection to server. Problem establishing socket connection for InvokerLocator [bisoket: //<TESTING_SERVER_IP:4457/?JBM_clientMaxPoolSize=...

               

              However, after change binding to local ip on both servers and up, still the same error as following is occuring

               

              javax.jms.IllegalStateException: Cannot find session with id 5l-nw6ignch-1-e1kjench-botagn-p1w1gs4

                at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoint.java:866)

               

               

              I tried to clean up some database table, such as JBM_ID_CACHE, JBM_POSTOFFICE, but still have same issue.

              I don't know what this error means.

              If anybody have any idea, comment, I will be glad to hear.

               

              Thanks

               

              -Kap

              • 4. Re: javax.jms.IllegalStateException: Cannot find session with id
                Tom Cunningham Master

                Kap,

                 

                It could be https://issues.jboss.org/browse/SOA-2578 - what version of ESB/SOA-P are you using?

                 

                I'd try to upgrade jboss-messaging and see if that has any effect.

                 

                --Tom

                • 5. Re: javax.jms.IllegalStateException: Cannot find session with id
                  Anders Staugaard Newbie

                  Did you ever find the solution to this issue? Im seeing the same at a customer.