IBM MQ .Net 客户端 v9.1.4 无法连接到 MQ 服务器 8.0.0.4 CompCode:2 原因:2059
IBM MQ .Net Client v9.1.4 cannot connect to MQ server 8.0.0.4 CompCode: 2 Reason: 2059
这是抛出代码 MQException 异常的程序的摘录(CompCode:2 原因:2059)
Hashtable properties = new Hashtable();
properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_MANAGED);
properties.Add(MQC.HOST_NAME_PROPERTY, _host);
properties.Add(MQC.PORT_PROPERTY, _port);
properties.Add(MQC.CHANNEL_PROPERTY, _channel);
_mqQMgr = new MQQueueManager(_manager, properties);
我设置了生成 link 的跟踪日志。一小段摘录:
000002B4 14:45:52.635100 16832.1 0x00000000 0B 08 00 00 : ..
000002B5 14:45:52.635100 16832.1 ----} MQFAP.NmqiConnect(String,NmqiConnectOptions,MQConnectOptions,Hconn,Phconn,out int,out int,ManagedHconn) rc=OK
000002B6 14:45:52.636100 16832.1 System.ArgumentNullException: Value cannot be null.
Parameter name: dest
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.CopyTo(Array array, Int32 index)
at IBM.WMQ.MQFAPMQCNO.set_ConnTag(Byte[] value)
at IBM.WMQ.MQFAP.NmqiConnect(String name, NmqiConnectOptions pNmqiConnectOpts, MQConnectOptions cno, Hconn remoteParentHconn, Phconn pHconn, Int32& compCode, Int32& reason, ManagedHconn rcnHconn)
at IBM.WMQ.MQFAP.MQCONNX(String pQMgrName, MQConnectOptions pConnectOpts, Phconn phconn, Int32& pCompCode, Int32& pReason)
000002B7 14:45:52.636100 16832.1 ---} MQFAP.MQCONNX(String,MQConnectOptions,Phconn,out int,out int) rc=OK
000002B8 14:45:52.636100 16832.1 IBM.WMQ.MQQueueManager#01475D71 throwing MQException: cc=2 rc=2059
000002B9 14:45:52.636100 16832.1 New MQException CompCode: 2 Reason: 2059
000002BA 14:45:52.662095 16832.1 --}! MQQueueManager.Connect() rc=(Unknown(2059))
服务器端Windows事件日志:
2/6/2020 16:00:18 - Process(4472.130285) User(MUSR_MQADMIN) Program(amqrmppa.exe) Host(MQ-TEIRESIAS-T) Installation(MQTest) VRMF(8.0.0.4) QMgr(MQ.EXTSERVICES)
Error on receive from host 10.0.8.46.
An error occurred receiving data from 10.0.8.46 over TCP/IP. This may be due to a communications failure.
The return code from the TCP/IP recv() call was 10054 (X'2746'). Record these values and tell the systems administrator.
这是 amqmdnet.dll (9.0.0.0)
的工作代码
我们感谢任何帮助或如何联系 IBM 支持
该问题已在 APAR IT31572 中得到解决。由 IBM 提供的修复程序,经过测试和验证 OK。发布 v9.1 CD 9.1.5
这是抛出代码 MQException 异常的程序的摘录(CompCode:2 原因:2059)
Hashtable properties = new Hashtable();
properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_MANAGED);
properties.Add(MQC.HOST_NAME_PROPERTY, _host);
properties.Add(MQC.PORT_PROPERTY, _port);
properties.Add(MQC.CHANNEL_PROPERTY, _channel);
_mqQMgr = new MQQueueManager(_manager, properties);
我设置了生成 link 的跟踪日志。一小段摘录:
000002B4 14:45:52.635100 16832.1 0x00000000 0B 08 00 00 : ..
000002B5 14:45:52.635100 16832.1 ----} MQFAP.NmqiConnect(String,NmqiConnectOptions,MQConnectOptions,Hconn,Phconn,out int,out int,ManagedHconn) rc=OK
000002B6 14:45:52.636100 16832.1 System.ArgumentNullException: Value cannot be null.
Parameter name: dest
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.CopyTo(Array array, Int32 index)
at IBM.WMQ.MQFAPMQCNO.set_ConnTag(Byte[] value)
at IBM.WMQ.MQFAP.NmqiConnect(String name, NmqiConnectOptions pNmqiConnectOpts, MQConnectOptions cno, Hconn remoteParentHconn, Phconn pHconn, Int32& compCode, Int32& reason, ManagedHconn rcnHconn)
at IBM.WMQ.MQFAP.MQCONNX(String pQMgrName, MQConnectOptions pConnectOpts, Phconn phconn, Int32& pCompCode, Int32& pReason)
000002B7 14:45:52.636100 16832.1 ---} MQFAP.MQCONNX(String,MQConnectOptions,Phconn,out int,out int) rc=OK
000002B8 14:45:52.636100 16832.1 IBM.WMQ.MQQueueManager#01475D71 throwing MQException: cc=2 rc=2059
000002B9 14:45:52.636100 16832.1 New MQException CompCode: 2 Reason: 2059
000002BA 14:45:52.662095 16832.1 --}! MQQueueManager.Connect() rc=(Unknown(2059))
服务器端Windows事件日志:
2/6/2020 16:00:18 - Process(4472.130285) User(MUSR_MQADMIN) Program(amqrmppa.exe) Host(MQ-TEIRESIAS-T) Installation(MQTest) VRMF(8.0.0.4) QMgr(MQ.EXTSERVICES)
Error on receive from host 10.0.8.46.
An error occurred receiving data from 10.0.8.46 over TCP/IP. This may be due to a communications failure.
The return code from the TCP/IP recv() call was 10054 (X'2746'). Record these values and tell the systems administrator.
这是 amqmdnet.dll (9.0.0.0)
的工作代码我们感谢任何帮助或如何联系 IBM 支持
该问题已在 APAR IT31572 中得到解决。由 IBM 提供的修复程序,经过测试和验证 OK。发布 v9.1 CD 9.1.5