java - Error using JMS Transaction - javax.jms.IllegalStateException: The session is closed -
i using jms polling poll jms queue every 5 minutes using below code. in below code, have set polling frequency 1 minute testing. polling working fine throwing below exception in logs. not able figure out why doing this. tried play around changing settings not figure out.
please me resolving issue.
<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" /> <service-overrides transactedmessagereceiver="com.mulesoft.mule.transport.jms.transactedpollingjmsmessagereceiver"/> <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>
polling working fine throwing below exception in logs :
warn 2013-05-02 10:33:05,072 [jmsconnector.receiver.03] com.mulesoft.mule.transport.jms.transactedpollingjmsmessagereceiver: error in tx notification handler. javax.jms.illegalstateexception: session closed. @ progress.message.jimpl.session.getjmsobjectclosedexception(session.java:3341) @ progress.message.jimpl.session.rollback(session.java:1499) @ com.mulesoft.mule.transport.jms.transactedpollingjmsmessagereceiver$2.onnotification(transactedpollingjmsmessagereceiver.java:323) @ com.mulesoft.mule.transport.jms.transactedpollingjmsmessagereceiver$2.onnotification(transactedpollingjmsmessagereceiver.java:298) @ org.mule.context.notification.sender.dispatch(sender.java:40) @ org.mule.context.notification.policy.dispatch(policy.java:122) @ org.mule.context.notification.servernotificationmanager.notifylisteners(servernotificationmanager.java:249) @ org.mule.context.notification.servernotificationmanager.firenotification(servernotificationmanager.java:200) @ org.mule.defaultmulecontext.firenotification(defaultmulecontext.java:435) @ org.mule.transaction.abstracttransaction.firenotification(abstracttransaction.java:144) @ org.mule.transaction.abstracttransaction.rollback(abstracttransaction.java:98) @ org.mule.transaction.abstractsingleresourcetransaction.rollback(abstractsingleresourcetransaction.java:85) @ org.mule.transaction.transactioncoordination.resolvetransaction(transactioncoordination.java:214) @ org.mule.execution.beginandresolvetransactioninterceptor.resolvetransactionifrequired(beginandresolvetransactioninterceptor.java:77) @ org.mule.execution.beginandresolvetransactioninterceptor.execute(beginandresolvetransactioninterceptor.java:59) @ org.mule.execution.resolveprevioustransactioninterceptor.execute(resolveprevioustransactioninterceptor.java:48) @ org.mule.execution.suspendxatransactioninterceptor.execute(suspendxatransactioninterceptor.java:54) @ org.mule.execution.validatetransactionalstateinterceptor.execute(validatetransactionalstateinterceptor.java:44) @ org.mule.execution.isolatecurrenttransactioninterceptor.execute(isolatecurrenttransactioninterceptor.java:44) @ org.mule.execution.externaltransactioninterceptor.execute(externaltransactioninterceptor.java:52) @ org.mule.execution.rethrowexceptioninterceptor.execute(rethrowexceptioninterceptor.java:32) @ org.mule.execution.rethrowexceptioninterceptor.execute(rethrowexceptioninterceptor.java:17) @ org.mule.execution.transactionalerrorhandlingexecutiontemplate.execute(transactionalerrorhandlingexecutiontemplate.java:113) @ org.mule.execution.transactionalerrorhandlingexecutiontemplate.execute(transactionalerrorhandlingexecutiontemplate.java:34) @ com.mulesoft.mule.transport.jms.transactedpollingjmsmessagereceiver.poll(transactedpollingjmsmessagereceiver.java:110) @ org.mule.transport.abstractpollingmessagereceiver.performpoll(abstractpollingmessagereceiver.java:219) @ org.mule.transport.pollingreceiverworker.poll(pollingreceiverworker.java:84) @ org.mule.transport.pollingreceiverworker.run(pollingreceiverworker.java:53) @ org.mule.work.workercontext.run(workercontext.java:311) @ java.util.concurrent.threadpoolexecutor$worker.runtask(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source)
please me looking issue.
vijay
this warning not error: though little scary, it's not error far mule concerned. maybe progress jms client little finicky , doesn't behave same way other jms clients do, again mule isn't reporting error should not impact application.
i suggest open jira anyway mulesoft can issue , maybe add support particular jms client.
Comments
Post a Comment