javax.jms.IllegalStateException: The Session is closed

Stack Overflow | Harmony888 | 4 months ago
  1. 0

    Camel routes fail to recover ActiveMq connection when sharing a single connection

    Stack Overflow | 4 months ago | Harmony888
    javax.jms.IllegalStateException: The Session is closed
  2. 0

    ActiveMQ - User - After broker restart, forever seeing 'javax.jms.IllegalStateException: The Session is closed' exceptions

    nabble.com | 8 months ago
    org.springframework.jms.IllegalStateException: The Session is closed; nested exception is javax.jms.IllegalStateException: The Session is closed
  3. 0

    JMS Connection is closed with Spring Boot

    Stack Overflow | 2 years ago | user1581366
    org.springframework.jms.IllegalStateException: The Session is closed; nested exception is javax.jms.IllegalStateException: The Session is closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connection refused to host: 127.0.0.1 | JBoss Developer

    jboss.org | 3 months ago
    javax.jms.IllegalStateException: The session is closed
  6. 0

    I am using TransactedPollingJmsMessageReceiver to poll the Sonic MQ at regular intervals. I am using below configuration : <!-- Sonic MQ Broker Configuration --> <jms:connector name="jmsConnector" jndiInitialFactory="${jndi.initialFactoryClass}" connectionFactoryJndiName="${jndi.connectionFactoryName}" jndiProviderUrl="${jms.brokerURL}" username="${jms.username}" password="${jms.password}" persistentDelivery="true" maxRedelivery="2" numberOfConcurrentTransactedReceivers="5" disableTemporaryReplyToDestinations="true" specification="1.1"> <spring:property name="connectionFactoryProperties"> <spring:map> <spring:entry key="connectID" value="" /> <spring:entry key="prefetchCount" value="10" /> <spring:entry key="prefetchThreshold" value="10" /> <spring:entry key="faultTolerant" value="false" /> <spring:entry key="persistentDelivery" value="true" /> <spring:entry key="maxDeliveryCount" value="2" /> <spring:entry key="loadBalancing" value="true" /> <spring:entry key="sequential" value="true" /> </spring:map> </spring:property> <service-overrides transactedMessageReceiver="com.mulesoft.mule.transport.jms.TransactedPollingJmsMessageReceiver"/> </jms:connector> <flow name="XXX"> <jms:inbound-endpoint queue="${JMS_QUEUE}" exchange-pattern="one-way"> <jms:transaction action="ALWAYS_BEGIN"/> <properties> <spring:entry key="pollingFrequency" value="60000" /> </properties> </jms:inbound-endpoint> -------------------- -------------------- </flow> The polling is working fine but it is throwing below exceptions every time it polls the Sonic MQ. We are using licensed version of Mule 3.3.3. Please look into this issue. Appreciate your help on this. 2013-07-11 09:33:21,078 [[esb-mule-wrapper].jmsConnector.receiver.03] WARN com.mulesoft.mule.transport.jms.TransactedPollingJmsMessageReceiver - Error in TX notification handler. javax.jms.IllegalStateException: The session is closed. at progress.message.jimpl.Session.getJMSObjectClosedException(Session.java:3341) at progress.message.jimpl.Session.rollback(Session.java:1499) at com.mulesoft.mule.transport.jms.TransactedPollingJmsMessageReceiver$2.onNotification(TransactedPollingJmsMessageReceiver.java:322) at com.mulesoft.mule.transport.jms.TransactedPollingJmsMessageReceiver$2.onNotification(TransactedPollingJmsMessageReceiver.java:297) at org.mule.context.notification.Sender.dispatch(Sender.java:40) at org.mule.context.notification.Policy.dispatch(Policy.java:122) at org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:249) at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:200) at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:435) at org.mule.transaction.AbstractTransaction.fireNotification(AbstractTransaction.java:144) at org.mule.transaction.AbstractTransaction.rollback(AbstractTransaction.java:98) at org.mule.transaction.AbstractSingleResourceTransaction.rollback(AbstractSingleResourceTransaction.java:85) at org.mule.transaction.TransactionCoordination.resolveTransaction(TransactionCoordination.java:214) at org.mule.execution.BeginAndResolveTransactionInterceptor.resolveTransactionIfRequired(BeginAndResolveTransactionInterceptor.java:77) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:59) at org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:48) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:54) at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:44) at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:44) at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:52) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:32) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:17) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:113) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:34) at com.mulesoft.mule.transport.jms.TransactedPollingJmsMessageReceiver.poll(TransactedPollingJmsMessageReceiver.java:109) at org.mule.transport.AbstractPollingMessageReceiver.performPoll(AbstractPollingMessageReceiver.java:219) at org.mule.transport.PollingReceiverWorker.poll(PollingReceiverWorker.java:84) at org.mule.transport.PollingReceiverWorker.run(PollingReceiverWorker.java:53) at org.mule.work.WorkerContext.run(WorkerContext.java:311) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662)

    MuleSoft JIRA | 3 years ago | Vijay Kumar
    javax.jms.IllegalStateException: The session is closed.

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.jms.IllegalStateException

      The Session is closed

      at org.apache.activemq.ActiveMQSession.checkClosed()
    2. ActiveMQ :: Core
      ActiveMQSession.createQueue
      1. org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)[activemq-core-5.7.0.jar:5.7.0]
      2. org.apache.activemq.ActiveMQSession.createQueue(ActiveMQSession.java:1169)[activemq-core-5.7.0.jar:5.7.0]
      2 frames
    3. AMQ bundle
      PooledSession.createQueue
      1. org.apache.activemq.jms.pool.PooledSession.createQueue(PooledSession.java:197)[activemq-jms-pool-5.10.2.jar:5.10.2]
      1 frame
    4. Spring Framework
      DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run
      1. org.springframework.jms.support.destination.DynamicDestinationResolver.resolveQueue(DynamicDestinationResolver.java:84)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      2. org.springframework.jms.support.destination.DynamicDestinationResolver.resolveDestinationName(DynamicDestinationResolver.java:58)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      3. org.springframework.jms.support.destination.JmsDestinationAccessor.resolveDestinationName(JmsDestinationAccessor.java:98)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      4. org.springframework.jms.listener.AbstractPollingMessageListenerContainer.createListenerConsumer(AbstractPollingMessageListenerContainer.java:204)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      5. org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.initResourcesIfNecessary(DefaultMessageListenerContainer.java:1167)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      6. org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1143)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      7. org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1136)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      8. org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1033)[spring-jms-4.1.7.RELEASE.jar:4.1.7.RELEASE]
      8 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_71]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_71]
      3. java.lang.Thread.run(Thread.java:745)[na:1.7.0_71]
      3 frames