javax.jms.IllegalStateException

The Session is closed

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web172

  • via GitHub by m0ru
    , 11 months ago
    The Session is closed
  • The Session is closed
  • via logging-log4j-user by Paul Mooney, 2 months ago
    The Session is closed
  • Stack trace

    • javax.jms.IllegalStateException: The Session is closed at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)[activemq-client-5.8.0.jar:na] at org.apache.activemq.ActiveMQSession.getTransacted(ActiveMQSession.java:521)[activemq-client-5.8.0.jar:na] at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_45] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_45] at org.springframework.jms.connection.CachingConnectionFactory$CachedSessionInvocationHandler.invoke(CachingConnectionFactory.java:384)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at com.sun.proxy.$Proxy181.getTransacted(Unknown Source)[na:na] at org.springframework.jms.listener.AbstractMessageListenerContainer.commitIfNecessary(AbstractMessageListenerContainer.java:696)[spring-jms-4.1.1.RELEASE.jar:na] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:341)[spring-jms-4.1.1.RELEASE.jar:na] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:246)[spring-jms-4.1.1.RELEASE.jar:na] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1142)[spring-jms-4.1.1.RELEASE.jar:na] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1134)[spring-jms-4.1.1.RELEASE.jar:na] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1031)[spring-jms-4.1.1.RELEASE.jar:na] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_45]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    8 times, 5 months ago
    4 times, 7 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    1 more bugmates