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 » Not able to connect to a QMGR

Post new topic  Reply to topic
 Not able to connect to a QMGR « View previous topic :: View next topic » 
Author Message
mitul
PostPosted: Tue Dec 28, 2004 9:13 am    Post subject: Not able to connect to a QMGR Reply with quote

Apprentice

Joined: 13 Jun 2002
Posts: 33

I have a QMgr created on an HP-UX machine.

I have a java application that tries to connect to the QMgr to get messages from the Q. Since the application is running on the same box, I am not specifying the hostname/port anywhere in the code.

I don't think that this also requires any configuration at the MQServer side.
Correct me if I am wrong.

When I try to run the code, it fails while trying to connect to the QMgr.
Fails with a reason code of 2059. i.e (QMGR NOT AVAILABLE)
But the QMgr is up and running. (verified with the dspmq command)

The id from which I am trying to run belongs to 'mqm' group. I have not given any explicit permissions on the QMgr and the other mq objects. Its just that I am part of mqm group as well as another group. So I think I have full access to my QMgr. Correct me if I am wrong.

I debugged the FDC and the ERR log created and here are the contents for the same -

/var/mqm/errors>vi AMQERR01.LOG
========================
Code:

----- amqxfdcx.c : 671 --------------------------------------------------------
12/28/04  11:13:09
AMQ6183: An internal WebSphere MQ error has occurred.

EXPLANATION:
An error has been detected, and the WebSphere MQ error recording routine has
been called. The failing process is process 3539.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center.  Do not discard these files until the problem has been resolved.
----- amqxfdcx.c : 711 --------------------------------------------------------


/var/mqm/errors>AMQ03539.0.FDC
=======================
Code:

+-----------------------------------------------------------------------------+
                                                                             
 WebSphere MQ First Failure Symptom Report                                   
 =========================================                                   
                                                                             
 Date/Time         :- Tuesday December 28 11:13:02 EST 2004                 
 Host Name         :- lath06 (HP-UX B.11.11)                                 
 PIDS              :- 5724B4102                                             
 LVLS              :- 530.5  CSD05                                           
 Product Long Name :- WebSphere MQ for HP-UX                                 
 Vendor            :- IBM                                                   
 Probe Id          :- XY079022                                               
 Application Name  :- MQM                                                   
 Component         :- xtrAccessCtlMem                                       
 Build Date        :- Sep 27 2003                                           
 CMVC level        :- p530-05-L030926                                       
 Build Type        :- IKAP - (Production)                                   
 UserID            :- 00044017 (UNKNOWN)                                     
 Program Name      :- java                                                   
 Process           :- 00003539                                               
 Thread            :- 00000001                                               
 Major Errorcode   :- xecF_E_UNEXPECTED_SYSTEM_RC                           
 Minor Errorcode   :- OK                                                     
 Probe Type        :- MSGAMQ6119                                             
 Probe Severity    :- 2                                                     
 Probe Description :- AMQ6119: An internal WebSphere MQ error has occurred   
   ('13 - Permission denied' from shmat.)                                   
 FDCSequenceNumber :- 0                                                     
 Arith1            :- 13 d                                                   
 Comment1          :- '13 - Permission denied' from shmat.                   
                                                                             
                                                                             
+-----------------------------------------------------------------------------+

+-----------------------------------------------------------------------------+
                                                                             
 WebSphere MQ First Failure Symptom Report                                   
 =========================================                                   
                                                                             
 Date/Time         :- Tuesday December 28 11:13:09 EST 2004                 
 Host Name         :- lath06 (HP-UX B.11.11)                                 
 PIDS              :- 5724B4102                                             
 LVLS              :- 530.5  CSD05                                           
 Product Long Name :- WebSphere MQ for HP-UX                                 
 Vendor            :- IBM                                                   
 Probe Id          :- XC001009                                               
 Application Name  :- MQM                                                   
 Component         :- xcsInitialize                                         
 Build Date        :- Sep 27 2003                                           
 CMVC level        :- p530-05-L030926                                       
 Build Type        :- IKAP - (Production)                                   
 UserID            :- 00044017 (UNKNOWN)                                     
 Program Name      :- java                                                   
 Process           :- 00003539                                               
 Thread            :- 00000001                                               
 Major Errorcode   :- xecF_E_UNEXPECTED_RC                                   
 Minor Errorcode   :- xecI_S_NOT_INIT                                       
 Probe Type        :- MSGAMQ6118                                             
 Probe Severity    :- 2                                                     
 Probe Description :- AMQ6118: An internal WebSphere MQ error has occurred   
   (40806007)                                                               
 FDCSequenceNumber :- 15                                                     
 Arith1            :- 1082155015 40806007                                   
                                                                             
+-----------------------------------------------------------------------------+



Surprisingly when I try to use the amsput and amqsget sample programs on the same QMgr and the Q, I am able to work fine with them.

This is what I am trying to do -
Code:

  if(qMgr!=null && qMgr.isConnected()) qMgr.disconnect();
                qMgr = new MQQueueManager(in_managername);


Also I am trying to run the program like -
Code:

nohup jreMQM -ms32m -mx128m -Djava.net.debug=all -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -D
org.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton -DConfigFile=${GITD_RootDir}/resource/MQConfig.cfg -Dexceptionconfig=${GITD_RootDir}/resource/MQConfig.cfg cititru.interdict.mq.MQMessageHandler >>&! ${GITD_Dir}/logs/MQ.log &

Where jreMQM --> java
and cititru.interdict.mq.MQMessageHandler --> My Program

Pls help me in resolving this.

Thanks in advance.

Regards,
Mitul
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 28, 2004 11:11 am    Post subject: Reply with quote

Grand High Poobah

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

Looks to me like it is a permission error.
When connecting in bindings mode in java you are not allowed to use any user that may be different from the user you logged on to the machine. If you do you will not be authenticated and a permission error will be thrown.

Enjoy
Back to top
View user's profile Send private message Send e-mail
mitul
PostPosted: Tue Dec 28, 2004 8:14 pm    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2002
Posts: 33

I have logged on to the machine with the id which is a part of the mqm group. I have also created the QMgr and the other MQ objects like Q's and Channels with the same id.
Code:

/home/ftnoper>id
uid=44017(ftnoper) gid=205(support) groups=214(ftnapp),3040(mqm)

/home/ftnoper> dspmqaut -m SSPLATFLEXCU_QM.DV -t qmgr -p ftnoper
Entity ftnoper has the following authorizations for object SSPLATFLEXCU_QM.DV:
        inq
        set
        connect
        altusr
        crt
        dlt
        chg
        dsp
        setid
        setall

If it allows me to create/start/stop/dlt/ that QMgr with this id..still is there a chance of being a permission issue..?
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Dec 28, 2004 8:28 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Ok, you have 10 privileges but what about the other 6?????
    browse
    clr
    get
    passall
    passid
    put

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
mitul
PostPosted: Tue Dec 28, 2004 11:49 pm    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2002
Posts: 33

Roger,
I think the permissions that you are mentioning are for Q's and not a QMgr.

In any case is it possible that not having a permission for put/get on a Q throws you with 2059..??

I will anyway check the permissions on the Q and let you know.

Regards,
Mitul
Back to top
View user's profile Send private message
mitul
PostPosted: Wed Dec 29, 2004 12:12 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2002
Posts: 33

Roger,

Code:

dspmqaut -m GI.QM.PROD -t queue -n INPUT.FROM.CLIENT.LQ -p ftnoper
Entity ftnoper has the following authorizations for object INPUT.FROM.CLIENT.LQ:
        get
        browse
        put
        inq
        set
        crt
        dlt
        chg
        dsp
        passid
        passall
        setid
        setall
        clr

Regards,
Mitul
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 29, 2004 1:28 pm    Post subject: Reply with quote

Grand High Poobah

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

Your permission problem may not necessarily be an mq permission problem. What is shmat ? This is part of the authentication process ?
is the user declared to the OS and in the right group ?

Enjoy
Back to top
View user's profile Send private message Send e-mail
mitul
PostPosted: Wed Dec 29, 2004 7:37 pm    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2002
Posts: 33

I have no clue about shmat.
Its just that when i dug the FDC is found this.

Also I assume that the user is declared to the OS and in the rt group.
Otherwise I won't be able to login with that id and create the QMgrs..!!
Correct me if I am wrong.

Regards,
Mitul
Back to top
View user's profile Send private message
gunter
PostPosted: Sat Jan 01, 2005 12:41 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

shmat - shared memory attach operation

I'm not fit with HP-UX, but it looks like an problem attaching shared memory.
On unix, mqm uses the setuid-bit to set the effective uid and gid, maybe one of your file-permission isn't set right or there is a mq-component(listener, commandserver, ... ) started by a wrong user( root ? ).
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
tkane
PostPosted: Mon Jan 03, 2005 9:29 am    Post subject: Reply with quote

Voyager

Joined: 23 Dec 2002
Posts: 82
Location: Kansas City

Have you tried the Java IVP?

I hadn't done bindings mode in a long time and the script that I have set up uses a client channel. To use bindings I ended up having to add a export SHLIB_PATH=/opt/mqm/java/lib

but try running the ivp in: /opt/mqm/samp/java/base/MQIVP.class

I ran mine today without being in the mqm group.

Good Luck
Tom
Back to top
View user's profile Send private message
leo>
PostPosted: Thu Jan 06, 2005 3:01 am    Post subject: Reply with quote

Apprentice

Joined: 06 Oct 2004
Posts: 42

hi
please check if this link is of any use to you:

http://www-1.ibm.com/support/docview.wss?uid=swg21191748

regards
Leo
_________________
IBM Certified System Administrator - Websphere MQ V5.3
Back to top
View user's profile Send private message
mitul
PostPosted: Thu Jan 06, 2005 6:58 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2002
Posts: 33

Thanks Leo,

I will forward this link to my administrator

I have also confirmed that the error occurs only for Bindings mode.

Probably either the shared memory error.

Also our admin is researching the ownerships of some of the directories. Looks like some are with 'root'

Thanks everybody. I will get back to you if required or hopefully once this issue is resolved.

Regards,
Mitul
Back to top
View user's profile Send private message
csmith28
PostPosted: Thu Jan 06, 2005 8:22 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Yes, the shmat alerts are related to your shared memory resources.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Not able to connect to a QMGR
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.