Back Forum Reply New

Errors while stoping DefaultMessageListenerContainer

mit(TibjmsSession.java:3356)
at org..jms.connection.JmsTransactionManager.doCommit(JmsTransactionManager.java:226)
at org..transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:662)
at org..transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)
at org..jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:248)
at org..jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:870)
at org..jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:810)
at java.lang.Thread.run(Thread.java:534)
Sometimes exception is different:Code:
lt;jmsListenerBean-1gt; [ERROR] lt;DefaultMessageListenerContainer:666gt; lt;Setup of JMS message listener invoker failed - trying to recovergt;
javax.jms.JMSException: Attributes differed from configured durable
at com.tibco.tibjms.Tibjmsx.buildException(Tibjmsx.java:512)
at com.tibco.tibjms.TibjmsSession._createConsumer(TibjmsSession.java:422)
at com.tibco.tibjms.TibjmsSession._createConsumer(TibjmsSession.java:352)
at com.tibco.tibjms.TibjmsSession.createDurableSubscriber(TibjmsSession.java:3202)
at org..jms.listener.AbstractPollingMessageListenerContainer.createConsumer(AbstractPollingMessageListenerContainer.java:429)
at org..jms.listener.AbstractPollingMessageListenerContainer.createListenerConsumer(AbstractPollingMessageListenerContainer.java:216)
at org..jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.initResourcesIfNecessary(DefaultMessageListenerContainer.java:886)
at org..jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:869)
at org..jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:810)
at java.lang.Thread.run(Thread.java:534)
Here is my configuration:Code:
lt;bean id=quot;jmsListenerBeanquot; class=quot;org..jms.listener.DefaultMessageListenerContainerquot;gt;  lt;property name=quot;durableSubscriptionNamequot; value=quot;someTibcoTopicNamequot;/gt;  lt;property name=quot;destinationquot;gt;   lt;bean class=quot;org..aop.framework.ProxyFactoryBeanquot;gt;     lt;property name=quot;targetSourcequot;gt;       lt;bean class=quot;org..jndi.JndiObjectTargetSourcequot;gt;         lt;property name=quot;jndiNamequot; value=quot;someTibcoTopicJndiNamequot;/gt;         lt;property name=quot;expectedTypequot; value=quot;com.tibco.tibjms.TibjmsTopicquot;/gt;         lt;property name=quot;jndiEnvironmentquot; ref=quot;tibcoEnvquot;/gt;         lt;property name=quot;lookupOnStartupquot; value=quot;falsequot;/gt;       lt;/beangt;     lt;/propertygt;     lt;property name=quot;autodetectInterfacesquot; value=quot;falsequot;/gt;     lt;property name=quot;proxyTargetClassquot; value=quot;truequot;/gt;     lt;property name=quot;exposeProxyquot; value=quot;truequot;/gt;   lt;/beangt; lt;/propertygt;  lt;property name=quot;autoStartupquot; value=quot;falsequot;/gt; lt;property name=quot;recoveryIntervalquot; value=quot;120000quot;/gt; lt;property name=quot;cacheLevelNamequot; value=quot;CACHE_CONSUMERquot;/gt; lt;property name=quot;connectionFactoryquot; ref=quot;jmsConnectionFactoryquot;/gt; lt;property name=quot;sessionAcknowledgeModeNamequot; value=quot;AUTO_ACKNOWLEDGEquot;/gt; lt;property name=quot;sessionTransactedquot; value=quot;truequot;/gt; lt;property name=quot;pubSubDomainquot; value=quot;truequot;/gt; lt;property name=quot;subscriptionDurablequot; value=quot;truequot;/gt;
lt;property name=quot;transactionManagerquot;gt;   lt;bean class=quot;org..jms.connection.JmsTransactionManagerquot;gt;     lt;property name=quot;connectionFactoryquot; ref=quot;jmsConnectionFactoryquot;/gt;   lt;/beangt; lt;/propertygt;
lt;property name=quot;messageListenerquot;gt;   lt;bean class=quot;org..jms.listener.adapter.MessageListenerAdapterquot;gt;     lt;property name=quot;messageConverterquot; ref=quot;someMessageConverterquot;/gt;     lt;property name=quot;delegatequot; ref=quot;someHandlerquot;/gt;     lt;property name=quot;defaultListenerMethodquot; value=quot;handlequot;/gt;   lt;/beangt; lt;/propertygt;  lt;property name=quot;exceptionListenerquot; ref=quot;someExceptionListenerquot;/gt;
lt;/beangt;lt;bean id=quot;jmsConnectionFactoryquot;     class=quot;org..jms.connection.SingleConnectionFactoryquot;gt; lt;property name=quot;targetConnectionFactoryquot;gt;   lt;bean class=quot;org..jms.connection.UserCredentialsConnectionFactoryAdapterquot;gt;     lt;property name=quot;targetConnectionFactoryquot;gt;       lt;bean class=quot;org..aop.framework.ProxyFactoryBeanquot;gt;         lt;property name=quot;targetSourcequot;gt;lt;bean class=quot;org..jndi.JndiObjectTargetSourcequot;gt;  lt;property name=quot;jndiNamequot; value=quot;connectionFactoryJndiNamequot;/gt;  lt;property name=quot;expectedTypequot; value=quot;com.tibco.tibjms.TibjmsConnectionFactoryquot;/gt;  lt;property name=quot;jndiEnvironmentquot; ref=quot;tibcoEnvquot;/gt;  lt;property name=quot;lookupOnStartupquot; value=quot;falsequot;/gt;lt;/beangt;         lt;/propertygt;         lt;property name=quot;autodetectInterfacesquot; value=quot;falsequot;/gt;         lt;property name=quot;proxyTargetClassquot; value=quot;truequot;/gt;         lt;property name=quot;exposeProxyquot; value=quot;truequot;/gt;       lt;/beangt;      lt;/propertygt;     lt;property name=quot;usernamequot; value=quot;userquot;/gt;     lt;property name=quot;passwordquot; value=quot;passquot;/gt;   lt;/beangt; lt;/propertygt; lt;property name=quot;exceptionListenerquot; ref=quot;someExceptionListenerquot;/gt;
lt;/beangt;
Can someone shed some light on this kind of stuff? Why these exceptions are thrown? Is it an issue or just wrong level of logging in Spring?

Thank you.
¥
Back Forum Reply New