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 » General IBM MQ Support » 2058 for non-mqm user of AIX 64-bit client

Post new topic  Reply to topic
 2058 for non-mqm user of AIX 64-bit client « View previous topic :: View next topic » 
Author Message
Mut1ey
PostPosted: Fri Jan 01, 2010 9:47 am    Post subject: 2058 for non-mqm user of AIX 64-bit client Reply with quote

Acolyte

Joined: 07 Oct 2005
Posts: 74
Location: England

Hi All

We have a puzzling situation here. AIX 53 client with 7.0.1 64-bit install. Talking to a 64-bit RHEL 53 install of server, hosted on VMWare - intel based image. Client Conn details are in the AMQCLCHL.TAB file, not MQSERVER env variable.

mqm user connects fine using amqsputc and amqsgetc. However, an application user id that needs to be used to develop an MQ Client application fails with 2058. The app user is a member of the mqm group.

Now the environment of the user does have the following set:

Code:
LD_LIBRARY_PATH=/usr/jbc//lib:/usr/jbc//jdk/jre/lib:/usr/jbc//jdk/jre/lib/platform:
/usr/ccs/lib:/usr/lib
LIBPATH=/usr/jbc//lib:/usr/jbc//jdk/jre/lib:/usr/jbc//jdk/jre/lib/platform:
/usr/ccs/lib:/usr/lib:/usr/mqm/java/lib:/usr/mqm/lib64:
/usr/java14/jre/bin:/usr/java14/jre/bin/classic


Have used the dltmqlnk command as well, just in case.

Any ideas?
Back to top
View user's profile Send private message
mvic
PostPosted: Fri Jan 01, 2010 10:38 am    Post subject: Re: 2058 for non-mqm user of AIX 64-bit client Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Are the CCDT environment vars correctly set up? Is the CCDT file readable by the user?
Back to top
View user's profile Send private message
Mut1ey
PostPosted: Fri Jan 01, 2010 4:58 pm    Post subject: Re: 2058 for non-mqm user of AIX 64-bit client Reply with quote

Acolyte

Joined: 07 Oct 2005
Posts: 74
Location: England

mvic wrote:
Are the CCDT environment vars correctly set up? Is the CCDT file readable by the user?


CCDT?

The mqclient.ini points to the correct directory for the .TAB file, and that file is owned by mqm user and mqm group, as is the .TAB file I think - but a good point - I will double check.

Thanks.
Back to top
View user's profile Send private message
mvic
PostPosted: Fri Jan 01, 2010 5:20 pm    Post subject: Re: 2058 for non-mqm user of AIX 64-bit client Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Mut1ey wrote:
CCDT?

Client channel definition table. The AMQCLCHL.TAB file, in other words.

The env vars to use are MQCHLLIB and MQCHLTAB.

As long as your app is starting up, I do not expect your LD_LIBRARY_PATH settings are a problem.

UPDATE: Just re-read and noticed your reference to mqclient.ini. This should indeed be sufficient instead of the env vars if everything is spelled correctly in that file. Just in case the mqclient.ini is not working for some reason (not likely but worth checking) perhaps try the env vars instead.
Back to top
View user's profile Send private message
Vitor
PostPosted: Sat Jan 02, 2010 8:32 am    Post subject: Re: 2058 for non-mqm user of AIX 64-bit client Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mvic wrote:
As long as your app is starting up, I do not expect your LD_LIBRARY_PATH settings are a problem.




If the app is getting a 2058 I'd also suspect those env variables are not set correctly (or not in scope of the application). One possible test (if your app people are willing) is to try connecting to a wildcard - this will connect to any queue manager it can see in the CCDT. If that works, the file is fine and you have a spelling mistake. If it doesn't, the file isn't accessable.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Jan 02, 2010 11:16 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Please post the entire shell conversation from the export environment variables and execution of amqsputc (or your app). Also, is the client table visible from this shell? Do a cat, for example.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mvic
PostPosted: Sat Jan 02, 2010 12:35 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

bruce2359 wrote:
Also, is the client table visible from this shell? Do a cat, for example.

Unfortunately the CCDT is in a complicated binary format so "cat" will not give good results.

I'm assuming the principal aim of the advice to run "cat" was to prove that there is read access to the file(?)

In that case, then this is something close, and a little kinder to your terminal:
Code:
strings $MQCHLLIB/$MQCHLTAB | head
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Jan 02, 2010 1:11 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
Unfortunately the CCDT is in a complicated binary format so "cat" will not give good results.

Yes, but any output means that the ccdt is visible in the path; and this is better than 'not found.'
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mvic
PostPosted: Sat Jan 02, 2010 1:14 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

bruce2359 wrote:
Quote:
Unfortunately the CCDT is in a complicated binary format so "cat" will not give good results.

Yes, but any output means that the ccdt is visible in the path; and this is better than 'not found.'

Fair enough; I did update my post to anticipate/acknowledge this - not sure if you saw my edits?
Back to top
View user's profile Send private message
Mut1ey
PostPosted: Sat Jan 02, 2010 4:32 pm    Post subject: Reply with quote

Acolyte

Joined: 07 Oct 2005
Posts: 74
Location: England

One thing to mention again is that the mqm user works fine. It can connect to the qmgr and put/ get messages - so it can't be a typo in the TAB file.

I am still waiting to find out the file permissions although pretty sure that the mqm group will have read access.

Would a trace be worth while?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Jan 02, 2010 4:35 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
One thing to mention again is that the mqm user works fine.

So, mqm has permission to read the filesystem. Does the username running the app have read permission?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
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 » General IBM MQ Support » 2058 for non-mqm user of AIX 64-bit client
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.