2 wang414242 wang414242 于 2016.04.23 11:26 提问

IBM MQ MQJE001: 完成代码为 '2',原因为 '3013'
ibm

运行tools自带的样例 MQ服务器按照代码中的队列管理器和队列创建的
结果就抛这个异常,求大侠帮助.
个人联系方式 QQ 497673753 非常感谢


MQJE001: 完成代码为 '2',原因为 '3013'。
Exception in thread "main" com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ2008: 打开 MQ 队列 'Q1' 失败。
JMS 尝试执行 MQOPEN,但 WebSphere MQ 报告了错误。
使用链接的异常来确定此错误的原因。检查是否正确定义了指定的队列和队列管理器。
at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:585)
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:221)
at com.ibm.msg.client.wmq.internal.WMQMessageProducer.checkJmqiCallSuccess(WMQMessageProducer.java:1061)
at com.ibm.msg.client.wmq.internal.WMQMessageProducer.checkJmqiCallSuccess(WMQMessageProducer.java:1019)
at com.ibm.msg.client.wmq.internal.WMQMessageProducer.access$800(WMQMessageProducer.java:68)
at com.ibm.msg.client.wmq.internal.WMQMessageProducer$SpiIdentifiedProducerShadow.initialise(WMQMessageProducer.java:765)
at com.ibm.msg.client.wmq.internal.WMQMessageProducer.(WMQMessageProducer.java:995)
at com.ibm.msg.client.wmq.internal.WMQSession.createProducer(WMQSession.java:886)
at com.ibm.msg.client.jms.internal.JmsSessionImpl.createProducer(JmsSessionImpl.java:1232)
at com.ibm.msg.client.jms.internal.JmsQueueSessionImpl.createSender(JmsQueueSessionImpl.java:136)
at com.ibm.mq.jms.MQQueueSession.createSender(MQQueueSession.java:153)
at mq.MQSender.sendMessage(MQSender.java:49)
at mq.MQSender.main(MQSender.java:105)
Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ 调用失败,完成代码为 '2' ( 'MQCC_FAILED' ),原因为 '3013' ( '' )。
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:209)
... 11 more
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=3013
at com.ibm.mq.ese.intercept.JmqiOpenInterceptorImpl.processExceptionAfterOpen(JmqiOpenInterceptorImpl.java:712)
at com.ibm.mq.ese.intercept.JmqiOpenInterceptorImpl.afterSpiOpen(JmqiOpenInterceptorImpl.java:212)
at com.ibm.mq.ese.jmqi.InterceptedJmqiImpl.spiOpen(InterceptedJmqiImpl.java:411)
at com.ibm.mq.ese.jmqi.ESEJMQI.spiOpen(ESEJMQI.java:513)
at com.ibm.msg.client.wmq.internal.WMQMessageProducer$SpiIdentifiedProducerShadow.initialise(WMQMessageProducer.java:762)
... 7 more
Caused by: IBM WebSphere MQ Advanced Message Security Java 拦截器未能获取安全策略。原因码:'3013'
The IBM WebSphere MQ Advanced Message Security Java interceptor was not able to obtain the security policy.
See subsequent messages in the exception for more details about the cause of the error.
at com.ibm.mq.ese.service.PolicyServiceImpl.failedToObtainPolicyException(PolicyServiceImpl.java:407)
at com.ibm.mq.ese.service.PolicyServiceImpl.policyFromPcf(PolicyServiceImpl.java:613)
at com.ibm.mq.ese.intercept.JmqiOpenInterceptorImpl.storeSecurityInfoInSmqiObject(JmqiOpenInterceptorImpl.java:357)
at com.ibm.mq.ese.intercept.JmqiOpenInterceptorImpl.afterSpiOpen(JmqiOpenInterceptorImpl.java:209)
... 10 more
Caused by: com.ibm.mq.headers.MQDataException: MQJE001: 完成代码为 '2',原因为 '3013'。
at com.ibm.mq.headers.pcf.PCFParameter.nextParameter(PCFParameter.java:91)
at com.ibm.mq.headers.pcf.PCFMessage.initialize(PCFMessage.java:566)
at com.ibm.mq.headers.pcf.PCFMessage.(PCFMessage.java:133)
at com.ibm.mq.ese.service.PolicyServiceImpl.policyFromPcf(PolicyServiceImpl.java:555)
... 12 more

2个回答

wanghao__
wanghao__   2016.12.22 15:07

请问下问题解决了么? 遇到相同问题。。

wanghao__
wanghao__   2016.12.22 16:50








 v

属性一个都不能少 是因为少了个字符集设置

Csdn user default icon
上传中...
上传图片
插入图片