IBM MQ和.NET中的MQRC_Q_MGR_NAME_ERROR异常 [英] MQRC_Q_MGR_NAME_ERROR exception in IBM MQ and .NET

查看:967
本文介绍了IBM MQ和.NET中的MQRC_Q_MGR_NAME_ERROR异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MQ.NET类,但是当我指定正确的队列管理器时,仍然会出现以下错误.

I am using MQ.NET classes, however when i specify the correct queue manager, i still get this below error.

例外:

CompCode:2,原因:2058 MQRC_Q_MGR_NAME_ERROR 数据:{System.Collections.ListDictionaryInternal}

CompCode: 2, Reason: 2058 MQRC_Q_MGR_NAME_ERROR Data: {System.Collections.ListDictionaryInternal}

消息:"MQRC_Q_MGR_NAME_ERROR" 来源:"amqmdnet"

Message: "MQRC_Q_MGR_NAME_ERROR" Source: "amqmdnet"

MQQueueManager mqQMgr=null; 
//MYMGRTEST is my queue manager
mqQMgr = new MQQueueManager("MYMGRTEST"); -> This piece of line throws above exception.

发生这种情况的可能原因是什么(网络权限/管理员权限/?)?有任何纠正措施吗?

What are the possible reasons this can happen(network permission/admin rights/?) ? Any measures to correct this?

我还在websphere的错误文件夹下的错误日志中看到此信息.

Also i see this information in the error log under errors folders of websphere.

AMQ9518:文件'C:\ Program Files(x86)\ IBM \ WebSphere MQ \ AMQCLCHL.TAB' 找不到.

AMQ9518: File 'C:\Program Files (x86)\IBM\WebSphere MQ\AMQCLCHL.TAB' not found.

说明: 该程序要求文件'C:\ Program Files(x86)\ IBM \ WebSphere MQ \ AMQCLCHL.TAB'存在且可用.

EXPLANATION: The program requires that the file 'C:\Program Files (x86)\IBM\WebSphere MQ\AMQCLCHL.TAB' is present and available.

操作: 这可能是由于可选环境变量的值无效引起的 MQCHLLIB,MQCHLTAB或MQDATA.如果这些变量有效或未设置,则 记录文件名,并告诉系统管理员谁必须确保 该文件'C:\ Program Files(x86)\ IBM \ WebSphere MQ \ AMQCLCHL.TAB'可用 到程序.

ACTION: This may be caused by invalid values for the optional environment variables MQCHLLIB, MQCHLTAB or MQDATA. If these variables are valid or not set then record the name of the file and tell the systems administrator who must ensure that file 'C:\Program Files (x86)\IBM\WebSphere MQ\AMQCLCHL.TAB' is available to the program.

由于我已经在系统中安装了MQ客户端,因此不确定该错误是什么.

Not sure what that error is about, as i have installed MQ client in my system.

推荐答案

希望您正在设置MQEnvironment:

Hope you are setting the MQEnvironment:

MQEnvironment.channel
MQEnvironment.port
MQEnvironment.hostname

您需要在其中设置正确的值.喜欢:

You need to set correct value in them. Like:

MQEnvironment.hostname="localhost", 
MQEnvironment.port=1414
MQEnvironment.channel="SYSTEM.DEF.CHANNEL"

这篇关于IBM MQ和.NET中的MQRC_Q_MGR_NAME_ERROR异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆