Posted: Mon Apr 02, 2012 7:09 pm Post subject: MQJE016: MQ queue manager closed channel immediately during
Apprentice
Joined: 13 Jun 2010 Posts: 39
Hi,
Iam trying to connect from MQ Java client to connect to Queue manager. both are on same server, I tried below code
Code:
MQQueueManager qMgr = new MQQueueManager("uctax03");
and also setting up mq properties
MQEnvironment.hostname = "localhost";
MQEnvironment.channel = "channel_name";
MQEnvironment.port = 1414
MQQueueManager qMgr = new MQQueueManager("uctax03");
Iam getting following error:
[0402 17:53:35 ] - com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:268)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:338)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:774)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:690)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:646)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:471)
at ClearQueueTimer_JavaCompute.clearQueue(ClearQueueTimer_JavaCompute.java:112)
at ClearQueueTimer_JavaCompute.evaluate(ClearQueueTimer_JavaCompute.java:76)
at com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.evaluate(MbRuntimeJavaComputeNode.java:180)
at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1476)
Caused by: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
at com.ibm.mq.MQv6InternalCommunications.checkControlFlags(MQv6InternalCommunications.java:771)
at com.ibm.mq.MQv6InternalCommunications.sendSecurityFlows(MQv6InternalCommunications.java:1463)
at com.ibm.mq.MQv6InternalCommunications.initialize(MQv6InternalCommunications.java:284)
at com.ibm.mq.MQv6InternalCommunications.<init>(MQv6InternalCommunications.java:112)
at com.ibm.mq.MQSESSIONClient.MQCONNX(MQSESSIONClient.java:1348)
at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1257)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:240)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum