简体   繁体   English

JMSCMQ0001:WebSphere MQ 调用失败,compcode '2' ('MQCC_FAILED') 原因 '2035' ('MQRC_NOT_AUTHORIZED')

[英]JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED')

I am using Websphere mq v 7.5.我正在使用 Websphere mq v 7.5。 When I try to send message to Queue, I get following error :当我尝试向队列发送消息时,出现以下错误:

JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED') Provided Username and password are wrong. JMSCMQ0001:WebSphere MQ 调用失败,compcode '2' ('MQCC_FAILED') 原因 '2035' ('MQRC_NOT_AUTHORIZED') 如果用户名和密码错误。

I don't have any credentials to provide as it doesn't ask at time of installation.我没有任何凭据可以提供,因为它在安装时不会询问。 My camel-context configuration is given below:我的骆驼上下文配置如下:

 <bean id="webspheremq" class="org.apache.camel.component.jms.JmsComponent">
    <property name="connectionFactory" ref="myConnectionFactory"/>
  </bean>

  <bean id="myConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
    <property name="hostName" value="mqhost"/>
    <property name="port" value="1417"/>
    <property name="queueManager" value="QM1"/>
    <property name="channel" value="SYSTEM.DEF.SVRCONN"/>
    <property name="transportType" value="1"/>
  </bean>

The 2035 error you received will have more information to explain it in the queue manager error log.您收到的 2035 错误将在队列管理器错误日志中提供更多信息来解释它。 The fact that the JMS error message mentions a user ID and password is misleading, it could be one of a number of security failures, not necessarily that one, I suspect you are being caught by a default security rule (CHLAUTH rule) that bans the use of SYSTEM channels. JMS 错误消息提到用户 ID 和密码这一事实具有误导性,它可能是许多安全故障之一,不一定是那个,我怀疑您被禁止的默认安全规则(CHLAUTH 规则)捕获使用系统通道。

Look in your queue manager AMQERR01.LOG and then read the following post for more help on how to deal with a failure caused by a CHLAUTH rule.查看您的队列管理器AMQERR01.LOG ,然后阅读以下帖子以获取有关如何处理由 CHLAUTH 规则引起的故障的更多帮助。

I'm being blocked by CHLAUTH - how can I work out why? 我被 CLAAUTH 屏蔽了 - 我该如何找出原因?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM