IBM MQ XMS for Net System.ObjectDisposedException:无法访问已关闭的文件

时间:2013-09-24 08:05:07

标签: c# jms ibm-mq

我的net-API与xms无法连接到远程管理器,而java-API与jms可以连接到同一个。

1.i已将ip地址添加到主机文件中。

有错误的日志。

 2013-09-24 15:55:04,620 [10] DEBUG line267 Com.Tsystems.Aviation.Imf.Client.connector.CmsConnector - The connection initialized param is, host: AIXMQ214, destination: IN.LQ.FSS1.FQDB, port: 1414, Qmgr: QM70IMF_01, user: aviation, ccsid: 819, channel: SYSTEM.DEF.SVRCONN
    2013-09-24 15:55:05,086 [10] ERROR line463 Com.Tsystems.Aviation.Imf.Client.connector.CmsConnector - create CMS connection failed on IN.LQ.FSS1.FQDB IBM.XMS.XMSException: CWSMQ0006E: An exception was received during the call to the method ConnectionFactory.CreateConnection: System.ObjectDisposedException: Cannot access a closed file.
       at IBM.WMQ.Nmqi.ManagedNmqiMQ.NmqiConnect(String name, NmqiConnectOptions pNmqiConnectOpts, MQConnectOptions cno, Hconn parentHconn, Phconn pHconn, Int32& compCode, Int32& reason)
       at IBM.XMS.Client.WMQ.WmqConnection..ctor(NmqiEnvironment nmqiEnv, NmqiMQ nmqiMQ, XmsPropertyContext connectProps)
       at IBM.XMS.Client.WMQ.WmqConnectionFactory.CreateV7ProviderConnection(XmsPropertyContext connectionProps). During execution of the specified method an exception was thrown by another component. See the linked exception for more information.
       at IBM.XMS.Client.WMQ.WmqConnectionFactory.CreateProviderConnection(XmsPropertyContext connectionProps)
       at IBM.XMS.Client.Impl.XmsConnectionFactoryImpl.CreateConnection(String userID, String password)
       at Com.Tsystems.Aviation.Imf.Client.connector.CmsConnector.Connect(CmsConnectorType connectorType) in D:\Aviation\C#\com.tsystems.aviation.imf.client\connector\CmsConnector.cs:line 412

    Linked Exception : System.ObjectDisposedException: Cannot access a closed file.
       at IBM.WMQ.Nmqi.ManagedNmqiMQ.NmqiConnect(String name, NmqiConnectOptions pNmqiConnectOpts, MQConnectOptions cno, Hconn parentHconn, Phconn pHconn, Int32& compCode, Int32& reason)
       at IBM.XMS.Client.WMQ.WmqConnection..ctor(NmqiEnvironment nmqiEnv, NmqiMQ nmqiMQ, XmsPropertyContext connectProps)
       at IBM.XMS.Client.WMQ.WmqConnectionFactory.CreateV7ProviderConnection(XmsPropertyContext connectionProps)

0 个答案:

没有答案