问题描述
MQJE001:AnMQExceptionoccurred:CompletionCode2,Reason2058MQJE036:QueuemanagerrejectedconnectionattemptMQJE001:AnMQExceptionoccurred:CompletionCode2,Reason2058MQJE036:Queuemanagerrejectedconnectionattemptcom.ibm.mq.MQException:MQJE001:AnMQExceptionoccurred:CompletionCode2,Reason2058MQJE036:Queuemanagerrejectedconnectionattemptatcom.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:268)atcom.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)atcom.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:338)atcom.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)atcom.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)atcom.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:774)atcom.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:690)atcom.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:646)atcom.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153)atcom.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:471)atcom.esb.mq.MQServer.run(MQServer.java:64)atjava.lang.Thread.run(Thread.java:811)Causedby:com.ibm.mqservices.MQInternalException:MQJE001:AnMQExceptionoccurred:CompletionCode2,Reason2058MQJE036:Queuemanagerrejectedconnectionattemptatcom.ibm.mq.MQv6InternalCommunications.parseConnReply(MQv6InternalCommunications.java:1849)atcom.ibm.mq.MQv6InternalCommunications.connectToQueueManager(MQv6InternalCommunications.java:1787)atcom.ibm.mq.MQv6InternalCommunications.initialize(MQv6InternalCommunications.java:292)atcom.ibm.mq.MQv6InternalCommunications.<init>(MQv6InternalCommunications.java:112)atcom.ibm.mq.MQSESSIONClient.MQCONNX(MQSESSIONClient.java:1348)atcom.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1257)atcom.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:240)...11more
解决方案
解决方案二:
查看防火墙,监听端口,监听器
解决方案三:
2058,打开对象失败,可能该对象更名或者不存在。这个需要重新测试连接对象的部分代码。看看队列名什么的是否正确。