Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...A lot of the information I've found at this site would've taken me forever if I'd have attempted to research it on my own. Thanks again."

Geography

Where in the world do Tek-Tips members come from?

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

kondurucs (Programmer)
14 Mar 06 16:04
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
kondurucs (Programmer)
14 Mar 06 16:05
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
pmeekin (Programmer)
10 Apr 06 6:54
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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close