我在连接AS400 MQ本地队列时遇到问题,其拒绝代码为JMSWMQ2013。

我的应用服务器的用户名为[email protected],但是在AS400中,我无法在MQ对象授权中提供指定的用户名。

是否可以通过Windows机器上的Websphere Appserver连接到AS400机器中定义的队列?

以下是我在连接时遇到的错误:

FFDC Exception:com.ibm.msg.client.jms.DetailedJMSSecurityException SourceId:com.ibm.ejs.jms.JMSManagedQueueConnection.createConnection ProbeId:116 Reporter:com.ibm.ejs.jms.JMSManagedQueueConnection@db6f33e4
com.ibm.msg.client.jms.DetailedJMSSecurityException: JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'TESTQMGR' with connection mode 'Client' and host name 'AS400T(1416)'.
Please check if the supplied username and password are correct on the QueueManager to which you are connecting.

Root cause:

JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').
    at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:204)

最佳答案

也许您需要定义单独的J2C身份验证别名并将其映射到连接工厂。 My appserver has a username as [email protected]是什么意思?

检查此页面2035 MQRC_NOT_AUTHORIZED Connecting to WebSphere MQ以获得更多详细信息:


  MQ拒绝连接的两个最可能的原因如下:

1. The user identifier passed across the client connection from the application
   server to MQ is not known on the server where the MQ queue manager is running,
   is not authorised to connect to MQ, or is longer than 12 characters and has
   been truncated.
   For queue managers running on Windows, the following error might be seen in
   the MQ error logs for this scenario:
   AMQ8075: Authorization failed because the SID for entity 'wasuser'
   cannot be obtained.
   For UNIX no entry in the MQ error logs would be seen by default.
   See technote MQS_REPORT_NOAUTH environment variable can be used
   to better diagnose return code 2035 for details of enabling error log
   entries on all platforms.
2. The user identifier passed across the client connection from the
   application server to MQ is a member of the 'mqm' group on the server
   hosting the MQ queue manager, and a Channel Authentication Record (CHLAUTH)
   exists that blocks administrative access to the queue manager.
   WebSphere MQ configures a CHLAUTH record by default in WebSphere MQ
   Version 7.1 and later that blocks all MQ admins from connecting
   as a client to the queue manager.
   The following error in the MQ error logs would be seen for
   this scenario: AMQ9777: Channel was blocked

09-27 12:17