ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ Connection Error

Post new topic  Reply to topic
 MQ Connection Error « View previous topic :: View next topic » 
Author Message
zen
PostPosted: Tue May 17, 2005 5:54 pm    Post subject: MQ Connection Error Reply with quote

Apprentice

Joined: 11 May 2005
Posts: 32
Location: Singapore

Hi guys, sorry I have to open up another discussion regarding the 2035 exception code. I already searched all the forums regarding this exception and I've tried a lot of the suggestions and solutions presented. Unfortunately, to no avail I cannot make this work! So I'm hoping maybe anybody could provide me some helpful insights regarding this.

Here's the situation:

We have MQ installed in a unix server machine. Using WSAD(Websphere Application Developer v.5) we created a java/jms client connection to the MQ server. The client is running on windows OS. At first, we left the MCAUSER setting to blank and the client was able to connect successfully. However, when we tried to authenticate the connection of the client using the userid usr001, the client keep encountering the error below:

SystemErr R MQJE001: An MQException occurred: Completion Code 2, Reason 2035
MQJE036: Queue manager rejected connection attempt
MQJE001: An MQException occurred: Completion Code 2, Reason 2035
MQJE036: Queue manager rejected connection attempt

We already placed usr001 in the mqm group and below is the dspmqaut results of usr001:
dspmqaut -m MQTEST -t qmgr -p usr001
Entity usr001 has the following authorizations for object MQTEST:
inq
set
connect
altusr
crt
dlt
chg
dsp
setid
setall

Meanwhile on the client, we have a ClientConnectionManager class with the code snippets below:

[more codes]
.........
.......
MQEnvironment.channel = "MQTEST.SVRCONN";
MQEnvironment.hostname = "testserv003";
MQEnvironment.port = 1414;
MQEnvironment.userID = "usr001";
......
.....
....
[more codes]
......
.....
MQSimpleConnectionManager conman = new MQSimpleConnectionManager();
conman.setActive (MQSimpleConnectionManager.MODE_ACTIVE);
conman.setTimeout (20000);
....
....
[more codes]
.....
MQQueueManager qMgr = new MQQueueManager("MQTEST", conman);
ClientConnectionManager.freeConnection (qMgr);
.....
......


Thank you very much for your time.
Back to top
View user's profile Send private message
kspranava
PostPosted: Tue May 17, 2005 6:05 pm    Post subject: refresh security Reply with quote

Centurion

Joined: 27 Apr 2003
Posts: 124

Hi,

try to connect after refreshing the security (command is "refresh security").
Back to top
View user's profile Send private message
zen
PostPosted: Tue May 17, 2005 6:09 pm    Post subject: MQ Connection Error Reply with quote

Apprentice

Joined: 11 May 2005
Posts: 32
Location: Singapore

Hi,

Thanks a lot for your reply. Yes I already did a refresh security on the mq server.

Any other ideas?

Thanks.
Back to top
View user's profile Send private message
kspranava
PostPosted: Tue May 17, 2005 6:22 pm    Post subject: Reply with quote

Centurion

Joined: 27 Apr 2003
Posts: 124

Hi,

Just to check with you,

without the following line "MQEnvironment.userID = "usr001";" in ur java program and MCAUSERID in the SVRCONN chl set to blank, were u able to connect?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 17, 2005 6:27 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Please do not post twice.
Check out my response in the other thread.
And remember after each change of security to issue
Refresh security to the qmgr.

Enjoy

This is a dupplicate thread. Please do not reply to it anymore
http://www.mqseries.net/phpBB2/viewtopic.php?t=22031
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ Connection Error
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.