【发布时间】:2021-10-23 16:18:22
【问题描述】:
在一个项目中,我们使用 JMS 连接到服务器。我们大约每个月都会出现一次异常,并且由于我们无法访问服务器端,我们不知道发生了什么。我们只有来自客户的日志。以下是错误跟踪:
javax.jms.JMSException: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119006: Channel disconnected]
at org.apache.activemq.artemis.jms.client.ActiveMQConnection$JMSFailureListener.connectionFailed(ActiveMQConnection.java:728) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.jms.client.ActiveMQConnection$JMSFailureListener.connectionFailed(ActiveMQConnection.java:749) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.callSessionFailureListeners(ClientSessionFactoryImpl.java:701) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.callSessionFailureListeners(ClientSessionFactoryImpl.java:689) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.failoverOrReconnect(ClientSessionFactoryImpl.java:645) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.handleConnectionFailure(ClientSessionFactoryImpl.java:504) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.handleConnectionFailure(ClientSessionFactoryImpl.java:497) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.access$100(ClientSessionFactoryImpl.java:72) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$1.run(ClientSessionFactoryImpl.java:360) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:122) ~[NSP.jar:NFMP_19_11]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
Caused by: org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119006: Channel disconnected
at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connectionDestroyed(ClientSessionFactoryImpl.java:353) ~[NSP.jar:NFMP_19_11]
at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector$Listener$1.run(NettyConnector.java:956) ~[NSP.jar:NFMP_19_11]
... 4 more
如你所见:
javax.jms.JMSException: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119006: Channel disconnected]
错误提示 频道已断开。我们搜索了这个,但我们无法理解它在 JMS 的上下文中是什么意思。它是与我们的客户端相关还是与服务器相关?
任何人都知道这个特定的错误或 JMS 通道吗?
【问题讨论】:
-
这里有任何反馈吗?
标签: jms activemq-artemis