An error has occurred with the WebSphere MQ JMS connection

旧巷老猫 提交于 2019-12-23 12:44:29

问题


Getting below error with MQ(Message Queue), how to resolve this?

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] -->

Message : com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with
compcode '2' ('MQCC_FAILED') reason '2009' ('MQRC_CONNECTION_BROKEN').

Caused by [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.


回答1:


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.

You could take a network trace to see how the TCP connection is being closed and by who.




回答2:


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

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

Add the newer version of below ibm.mq jars and make sure you have the additional jars too mentioned below:

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


来源:https://stackoverflow.com/questions/24989777/an-error-has-occurred-with-the-websphere-mq-jms-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!