Java WebSphere MQ JMS 连接发生错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24989777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
An error has occurred with the WebSphere MQ JMS connection
提问by user3644696
Getting below error with MQ(Message Queue), how to resolve this?
MQ(消息队列)出现以下错误,如何解决?
Message : com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ1107: A problem with
this connection has occurred. An error has occurred with the WebSphere MQ JMS
connection. Use the linked exception to determine the cause of this error.
Caused by [1] -->
由 [1] 引起的 -->
Message : com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with
compcode '2' ('MQCC_FAILED') reason '2009' ('MQRC_CONNECTION_BROKEN').
Caused by [3] -->
由[3]引起-->
Message : com.ibm.mq.jmqi.JmqiException: CC=2;RC=2009;AMQ9208: Error on receive
from host '/xx.xx.xx.xx:xxxx
(emb701t7.dci.bt.com)'. [1=-1,2=ffffffff,3=/xx.xx.xx.xx:xxxx
(emb701t7.dci.bt.com),4=TCP]
Please take me forward.
请带我前进。
回答by whitfiea
The TCP connection between the MQ client running in weblogic and the MQ Queue Manager channel process is being broken unexpectedly (that is what the return code 2009 means). This could be down to a number of issues such as the queue manager being killed, the channel process exiting for some reason, a firewall killing the connection etc. Have a look on the MQ queue manager error logs for issues with the channel process at the same time. Take a note of how often the error message occurs i.e. is the first error 2 hours after the weblogic server starts.
运行在 weblogic 中的 MQ 客户端与 MQ 队列管理器通道进程之间的 TCP 连接意外中断(这就是返回码 2009 的意思)。这可能归结为许多问题,例如队列管理器被终止、通道进程出于某种原因退出、防火墙终止连接等。查看 MQ 队列管理器错误日志以了解通道进程在同时。记下错误信息出现的频率,即weblogic服务器启动2小时后的第一个错误。
You could take a network trace to see how the TCP connection is being closed and by who.
您可以进行网络跟踪以查看 TCP 连接是如何关闭的以及由谁关闭的。
回答by Jaison Varghese
I faced the same error and its resolved now!
我遇到了同样的错误,现在解决了!
As Magic Wand mentioned in the comment, below error comes up if you have a lower version of MQ jar i.e if your MQ jar version is 7.0.1.5 or below
正如评论中提到的 Magic Wand,如果您的 MQ jar 版本较低,即如果您的 MQ jar 版本为 7.0.1.5 或更低版本,则会出现以下错误
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2009;AMQ9208: Error on receive from host
This bug has been fixed in IBM MQ version 7.0.1.6 or higher as mentioned here: http://www-01.ibm.com/support/docview.wss?uid=swg1IV00348
此错误已在 IBM MQ 7.0.1.6 或更高版本中修复,如下所述:http://www-01.ibm.com/support/docview.wss?uid=swg1IV00348
Add the newer version of below ibm.mq jars and make sure you have the additional jars too mentioned below:
添加以下 ibm.mq jars 的较新版本,并确保您也有下面提到的其他 jars:
com.ibm.mq.commonservices.jar
com.ibm.mq.jar
com.ibm.mq.jmqi.jar
com.ibm.mqbind.jar
com.ibm.mqjms.jar
fscontext.jar
jms-1.1-20020430.jar
providerutil.jar