【问题标题】:XMS.NET exits the process on factory.CreateConnectionXMS.NET 在 factory.CreateConnection 上退出进程
【发布时间】:2015-09-13 02:43:48
【问题描述】:

这是对XMS.NET hanging indefinitely on factory.CreateConnection("username", null); 的跟进。

按照 cmets 中的建议,我安装了最新版本的 MQ 客户端和 XMS.NET。 应用程序停止挂起,现在它只是在几秒钟后终止进程。没有异常被抛出。 提供的唯一信息是我打开完整 XMS 日志记录时得到的输出。

这发生在调用factory.CreateConnection

这是输出的尾部:

[26.06.2015 10:07:03:389693 W. Europe Standard Time] 00000009 > UOW= source=IBM.WMQ.Nmqi.UnmanagedNmqiMQ method=NmqiConnect(String,NmqiConnectOptions,MQConnectOptions,Hconn,Phconn,out int,out int) [:] org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
entry [SV2098743] [IBM.WMQ.Nmqi.NmqiConnectOptions] [IBM.WMQ.MQConnectOptions#00B8956A] [] [<null>] [pCompCode : out] [pReason : out]
[26.06.2015 10:07:03:396694 W. Europe Standard Time] 00000009 > UOW= source=IBM.WMQ.Nmqi.UnmanagedNmqiMQ method=GetUnmanagedHconn(Hconn) [:] org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
entry []
[26.06.2015 10:07:03:400694 W. Europe Standard Time] 00000009 > UOW= source= method=GetUnmanagedHconn(NmqiEnvironment,Object,Hconn) [:] org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
entry
[26.06.2015 10:07:03:404695 W. Europe Standard Time] 00000009 d UOW= source= org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
Hconn Value:0
[26.06.2015 10:07:03:406695 W. Europe Standard Time] 00000009 < UOW= source= method=GetUnmanagedHconn(NmqiEnvironment,Object,Hconn) rc=OK [:] org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
exit
[26.06.2015 10:07:03:407695 W. Europe Standard Time] 00000009 < UOW= source=IBM.WMQ.Nmqi.UnmanagedNmqiMQ method=GetUnmanagedHconn(Hconn) rc=OK [:] org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
exit
[26.06.2015 10:07:03:423697 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
Object ID      : 'IBM.WMQ.MQConnectOptions#00B8956A'
[26.06.2015 10:07:03:425697 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
version        : 5 (hex 5)
[26.06.2015 10:07:03:427697 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
options        : 64 (hex 40)
[26.06.2015 10:07:03:429697 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
clientConnOffset: 0 (hex 0)
[26.06.2015 10:07:03:430697 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
clientConnPtr  : [490028864]
[26.06.2015 10:07:03:431697 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
connTag        : 0
[26.06.2015 10:07:03:432697 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
_SSLConfigPtr  : [0]
[26.06.2015 10:07:03:433698 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
_SSLConfigOffset: 0 (hex 0)
[26.06.2015 10:07:03:434698 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
connectionId   : 0
[26.06.2015 10:07:03:435698 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
securityParmsOffset: 0 (hex 0)
[26.06.2015 10:07:03:437698 W. Europe Standard Time] 00000009 d UOW= source=IBM.WMQ.Nmqi.NmqiStructureFormatter org=IBM prod=WebSphere component=Message Service Client for .NET thread=[1 : 0]
securityParmsPtr: [490004432]
The program '[8740] WebServiceTesting.vshost.exe' has exited with code -2147483645 (0x80000003).

【问题讨论】:

    标签: c# .net jms ibm-mq xms


    【解决方案1】:

    好的。您安装了哪个版本的 MQ 客户端,v7.1 或 7.5 或 8.0 MQ?我假设您安装了 MQ v8 客户端。从 v7.1 版本开始,XMS .NET 与 MQ 客户端捆绑在一起。因此,当您安装 MQ 客户端时,也会安装 XMS .NET。因此无需再次单独安装 IA9H (XMS .NET) 客户端。所以请卸载 IA9H 并重试。

    如果已经安装了 MQ 客户端,我会在安装 IA9H 时出现警告。抱歉,我应该在你的另一个问题中提到这一点。

    【讨论】:

    • 我卸载了软件,然后只安装了 v8 MQ 客户端。我从我的 .NET 应用程序中引用了 C:\Program Files\IBM\WebSphere MQ\bin\IBM.XMS.dll 库。现在我得到一个{“无法加载文件或程序集'IBM.XMS.Client.Impl, Version=8.0.0.3, Culture=neutral, PublicKeyToken=d2666ab12fca862b'或其依赖项之一。系统找不到指定的文件。 ":"IBM.XMS.Client.Impl,版本=8.0.0.3,文化=中性,PublicKeyToken=d2666ab12fca862b"}。
    • 我重新安装了软件,手动调整了PATH变量。首先,应用程序刚刚在 .Connect 调用中自行终止。然后我将客户端从 UNMANAGED 切换回常规 CLIENT,现在我至少得到了一些东西:CWSMQ0006E:在调用 ConnectionFactory.CreateConnection 方法期间收到异常:CompCode:2,原因:2009。在执行指定的过程中方法一个异常被另一个组件抛出。有关详细信息,请参阅链接的异常。
    • 切换到UNMANAGED时,再次出现自动进程退出... :(
    • 我认为您的 MQ 客户端安装搞砸了。建议你全部卸载。确保 Windows 全局程序集缓存 (GAC) 中没有 XMS 的痕迹。 GAC 将位于 Windows\Assebly 目录下。如果问题仍然存在,请提出 PMR。
    • 我在卸载之后和新安装之前运行了 ResetMQ.cmd 文件。问题依然存在。我还检查了 C:\Windows\assembly 和 XMS 文件有 8.0.0.3 版本,应该是最新的,对吗?
    猜你喜欢
    • 2015-09-11
    • 1970-01-01
    • 1970-01-01
    • 2015-10-06
    • 2020-01-22
    • 2023-02-07
    • 1970-01-01
    • 2010-09-21
    • 2015-10-20
    相关资源
    最近更新 更多