Spring DMLC fails to reconnect listener which consumes messages from a Jboss topic
rithvik Jun 5, 2014 5:25 PMHI, I am new to JBoss application environment.
Our topic listener implemented using Spring DMLC and consuming messages from a JBOSS Topic . Our listener consumes messages successfully, but frequently getting below exceptions in debug logs for every 30 seconds.
[2014-05-29 15:10:54,602] |WARN | [myTopicListener-3] | org.springframework.jms.listener.DefaultMessageLis tenerContainer | Setup of JMS message listener invoker failed for destination 'JBossTopic[MyTopic]' - trying to recover. Cause: Failed to invoke
org.jboss.jms.exception.MessagingTransactionRolled BackException: Failed to invoke
at org.jboss.jms.tx.ResourceManager.commitLocal(Resou rceManager.java:228)
I spoke with Spring support team, they told that our listener is facing issues with Jboss and provided below details. Asked me to follow-up with JBoss.
at org.jboss.jms.tx.ResourceManager.commit! Local(ResourceManager.java:209)
... 16 more
Caused by: java.lang.IllegalStateException: Cannot find object in dispatcher with id 91e-uqjpfsvh-1-1fojrpvh-3ovgqb-82y4k4a
at org.jboss.jms.wireformat.ConnectionSendTransaction Request.serverInvoke(ConnectionSendTransactionRequ est.java:79)
Could you suggest me what is wrong here?. Highly appreciate your help regarding this
Attached details for reference
a)Configuration file:
< bean id = "ccmSPSMessageListener" class = "org.springframework.jms.listener.DefaultMessageLi stenerContainer" >
< !-- For Topic no concurrentConsumers -->
< property name = "concurrentConsumers" value = "1" />
< property name = "connectionFactory" ref = "myConnectionFactory" />
< property name = "destination" ref = "myTopic" />
< property name = "messageListener" ref = "myTopicListener" />
< property name = "sessionTransacted" value = "true" />
< !-- Specify topic style publish/subscribe -->
< property name = "pubSubDomain" value = "true" />
< !-- Will guaranty that we re! ceive messages in queue after broker goes down -->
< property name = "subscriptionDurable" value = "true" />
< !--1: AUTO_ACKNOWLEDGE 2: AUTO_ACKNOWLEDGE 3: DUPS_OK_ACKNOWLEDGE 0:SESSION TRANSACTED-->
< property name = "sessionAcknowledgeMode" value = "2" />
< property name = "clientId" value = "testUAT" />
< property name = "durableSubscriptionName" value = "TEST_TOPIC_SUB" />
< property name = "cache! LevelName" value = "CACHE_CONSUMER" />
< property name = "autoStartup" value = "false" />
< / bean >
b) Exception details
[2014-05-29 15:10:54,602] |WARN | [myTopicListener-3] | org.springframework.jms.listener.DefaultMessageLis tenerContainer | Setup of JMS message listener invoker failed for destination 'JBossTopic[MyTopic]' - trying to recover. Cause: Failed to invoke
org.jboss.jms.exception.MessagingTransactionRolled BackException: Failed to invoke
at org.jboss.jms.tx.ResourceManager.commitLocal(Resou rceManager.java:228)
at org.jboss.jms.client.container.SessionAspect.handl eCommit(SessionAspect.java:557)
at org.jboss.aop.advice.org.jboss.jms.client.containe r.SessionAspect_z_handleCommit_813381599.invoke(Se ssionAspect_z_handleCommit_813381599.java)
at org.jboss.jms.client.delegate.ClientSessionDelegat e$commit_8461082169793485964.invokeNext(ClientSess ionDelegate$commit_8461082169793485964.java)
at org.jboss.jms.client.container.ClosedInterceptor.i nvoke(ClosedInterce! ptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke (PerInstanceInterceptor.java:86)
at org.jboss.jms.client.delegate.ClientSessionDelegat e$commit_8461082169793485964.invokeNext(ClientSess ionDelegate$commit_8461082169793485964.java)
at org.jboss.jms.client.delegate.ClientSessionDelegat e.commit(ClientSessionDelegate.java)
at org.jboss.jms.client.JBossSession.commit(JBossSess ion.java:164)
at org.springframework.jms.support.JmsUtils.commitIfN ecessary(JmsUtils.java:217)
at org.springframework.jms.listener.AbstractMessageLi stenerContainer.commitIfNecessary(AbstractMessageL istenerContainer.java:577)
at org.springframework.jms.listener.AbstractPollingMe ssageListenerContainer.doReceiveAndExecute(Abstrac tPollingMessageListenerContainer.java:358)
at org.springframework.jms.listener.AbstractPollingMe ssageListenerContainer.receiveAndExecute(AbstractP ollingMessageListenerContainer.java:263)
at org.springframework.jms.listener.DefaultMe! ssageListenerContainer$AsyncMessageListenerInvoker .invokeListener(DefaultMessageListenerContainer.ja va:1096)
at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.execute OngoingLoop(DefaultMessageListenerContainer.java:1 088)
at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.run(Def aultMessageListenerContainer.java:985)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.jboss.jms.exception.MessagingJMSException: Failed to invoke
at org.jboss.jms.client.delegate.DelegateSupport.hand leThrowable(DelegateSupport.java:271)
at org.jboss.jms.client.delegate.DelegateSupport.doIn voke(DelegateSupport.java:205)
at org.jboss.jms.client.delegate.DelegateSupport.doIn voke(DelegateSupport.java:160)
at org.jboss.jms.client.delegate.ClientConnectionDele gate.org$jboss$jms$client$delegate$ClientConnectio nDelegate$sendTransaction$aop(ClientConnectionDele gate.java:221)
at org.jboss.jms.client.delegate.ClientConnectionDele gate$sendTransactio! n_N3268650789275322226.invokeNext(ClientConnection Delegate$sendTransaction_N3268650789275322226.java )
at org.jboss.jms.client.container.FailoverValveInterc eptor.invoke(FailoverValveInterceptor.java:92)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke (PerInstanceInterceptor.java:86)
at org.jboss.jms.client.delegate.ClientConnectionDele gate$sendTransaction_N3268650789275322226.invokeNe xt(ClientConnectionDelegate$sendTransaction_N32686 50789275322226.java)
at org.jboss.jms.client.container.ClosedInterceptor.i nvoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke (PerInstanceInterceptor.java:86)
at org.jboss.jms.client.delegate.ClientConnectionDele gate$sendTransaction_N3268650789275322226.invokeNe xt(ClientConnectionDelegate$sendTransaction_N32686 50789275322226.java)
at org.jboss.jms.client.delegate.ClientConnectionDele gate.sendTransaction(ClientConnectionDelegate.java )
at org.jboss.jms.tx.ResourceManager.commit! Local(ResourceManager.java:209)
... 16 more
Caused by: java.lang.IllegalStateException: Cannot find object in dispatcher with id 91e-uqjpfsvh-1-1fojrpvh-3ovgqb-82y4k4a
at org.jboss.jms.wireformat.ConnectionSendTransaction Request.serverInvoke(ConnectionSendTransactionRequ est.java:79)
at org.jboss.jms.server.remoting.JMSServerInvocationH andler.invoke(JMSServerInvocationHandler.java:157)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvo ker.java:862)
at org.jboss.remoting.transport.socket.ServerThread.p rocessInvocation(ServerThread.java:611)
at org.jboss.remoting.transport.socket.ServerThread.d orun(ServerThread.java:423)
at org.jboss.remoting.transport.socket.ServerThread.r un(ServerThread.java:176)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke (MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.remoting.Client.invoke(Client.java:536)
at org.jboss.jms.client.delegate.DelegateSupport.do! Invoke(DelegateSupport.java:189)
... 27 more
[2014-05-29 15:10:54,660] |INFO | [myTopicListener-3] | org.springframework.jms.listener.DefaultMessageLis tenerContainer | Successfully refreshed JMS Connection