mq连接异常

tjrkku2a  于 2021-07-24  发布在  Java
关注(0)|答案(0)|浏览(403)

嗨,我们有Spring Boot服务。它使用mq,并且有一个带有@jmslistener注解的类
有时这样的错误会出现在日志中,可能是什么,如何修复?)

WARN  o.m.pooled.jms.JmsPoolSession - Caught exception trying close() when putting session back into the pool, will invalidate. com.ibm.msg.client.jms.DetailedIllegalStateException: JMSCC0020: This session is closed.
An application called a method that must not be used after the session is closed.
Ensure that the session is not closed before calling the method.

com.ibm.msg.client.jms.DetailedIllegalStateException: JMSCC0020: This session is closed.
 at sun.reflect.GeneratedConstructorAccessor117.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
 at com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:319)
 at com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:226)
 at com.ibm.msg.client.jms.internal.JmsErrorUtils.createException(JmsErrorUtils.java:126)
at com.ibm.msg.client.jms.internal.State.checkNotClosed(State.java:142)
 at com.ibm.msg.client.jms.internal.JmsSessionImpl.checkNotClosed(JmsSessionImpl.java:3049)
 at com.ibm.msg.client.jms.internal.JmsSessionImpl.setMessageListener(JmsSessionImpl.java:2167)
 at com.ibm.mq.jms.MQSession.setMessageListener(MQSession.java:978)
 at org.messaginghub.pooled.jms.JmsPoolSession.close(JmsPoolSession.java:91)
 at org.springframework.jms.support.JmsUtils.closeSession(JmsUtils.java:109)
 at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.clearResources(DefaultMessageListenerContainer.java:1241)
 at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1087)
 at java.lang.Thread.run(Thread.java:748)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题