Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion C

Status
Not open for further replies.

kondurucs

Programmer
Oct 19, 2005
4
US
Need in solving this error.I am trying to connect to Queue Manager which is on remote server using JMS.I am getting this error at
MQQueueConnectionFactory factory ;
QueueConnection connection ;
connection = factory.createQueueConnection();

ur help is greatly appreciated.thanks
-chandu
 
sorry to forgot to paste the error details.

com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Rea
son 2035
MQJE036: Queue manager rejected connection attempt
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:
242)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnecti
on(MQClientManagedConnectionFactoryJ11.java:276)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnectio
n(MQClientManagedConnectionFactoryJ11.java:296)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.jav
a:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConne
ctionManager.java:171)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.jav
a:754)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:688)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:469)
at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2255)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1749)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:144)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:54)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueue
ConnectionFactory.java:106)
at MqConnTest.<init>(MqConnTest.java:69)
at MqConnTest.main(MqConnTest.java:106)
Caused by: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occur
red: Completion Code 2, Reason 2035
MQJE036: Queue manager rejected connection attempt
at com.ibm.mq.MQInternalCommunications.connectToQueueManager(MQInternalC
ommunications.java:2894)
at com.ibm.mq.MQInternalCommunications.<init>(MQInternalCommunications.j
ava:619)
at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1344)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:
218)
... 15 more
MQJMS2013: invalid security authentication supplied for MQQueueManager


thanks
-chandu
 
Depending upon the platform you are running this on, if you run the command mqrc passing the Reason code as a parameter it will give you the meaning of the error message. In this case, mqrc 2035 returns "MQRC_NOT_AUTHORIZED".

Your userid is not authorised to connect to the remote QMgr. As this is a Java program, you need to fill in the specify a userid which has the appropriate permission to the remote QMgr e.g. on the createQueueConnection call. If you are using Version 6 of the MQ Java classes I believe it will pass the current userid so you need to make sure that is the one you intend to use and that it has sufficient access.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top