【问题标题】:Incomprehensible JMS Exception ActiveMQNotConnectedException无法理解的 JMS 异常 ActiveMQNotConnectedException
【发布时间】: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


【解决方案1】:

本身不存在“JMS 通道”之类的东西。这里引用的channel是ActiveMQ Artemis提供的JMS客户端实现中使用的底层Netty channel

堆栈跟踪仅表明通道已失败。它已断开连接。因此,客户端不再连接到代理。没有具体说明为什么频道已断开连接。断开连接可能是由于代理崩溃、某种网络故障等造成的。

【讨论】:

  • 嗨,贾斯汀,感谢您的解释,您说得对,它与 Netty 有关,我们正在从服务端分析这个问题。我会联系你会发现什么
猜你喜欢
  • 2015-03-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-06-15
  • 1970-01-01
  • 1970-01-01
  • 2012-10-12
相关资源
最近更新 更多