product-ei
product-ei copied to clipboard
[ESB] Fix JMS inbound endpoint issue when rollbacking JMS messages
Description:
In ESB JMS inbound endpoint, the server throws the following exception 'Session is closed' when the transport.jms.CacheLevel
is set to more than 1.
TID: [-1234] [] [2021-06-29 13:36:22,405] ERROR {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} - Error rolling back local session txn for message : ID:sajithas-mbp-62123-1624953731341-4:1:1:1:1 {org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer}
javax.jms.IllegalStateException: The Session is closed
at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:771)
at org.apache.activemq.ActiveMQSession.getTransacted(ActiveMQSession.java:540)
at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.poll(JMSPollingConsumer.java:224)
at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer.execute(JMSPollingConsumer.java:119)
at org.wso2.carbon.inbound.endpoint.protocol.jms.JMSTask.taskExecute(JMSTask.java:47)
at org.wso2.carbon.inbound.endpoint.common.InboundTask.execute(InboundTask.java:45)
at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:98)
at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suggested Labels: Type/Bug