javax.jms.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Vijay Kumar,
  • 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)
    via by Vijay Kumar,
    • 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)
    No Bugmate found.