Author |
Message
|
Mut1ey |
Posted: Fri Jan 01, 2010 9:47 am Post subject: 2058 for non-mqm user of AIX 64-bit client |
|
|
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 |
|
 |
mvic |
Posted: Fri Jan 01, 2010 10:38 am Post subject: Re: 2058 for non-mqm user of AIX 64-bit client |
|
|
 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 |
|
 |
Mut1ey |
Posted: Fri Jan 01, 2010 4:58 pm Post subject: Re: 2058 for non-mqm user of AIX 64-bit client |
|
|
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 |
|
 |
mvic |
Posted: Fri Jan 01, 2010 5:20 pm Post subject: Re: 2058 for non-mqm user of AIX 64-bit client |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
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 |
|
 |
Vitor |
Posted: Sat Jan 02, 2010 8:32 am Post subject: Re: 2058 for non-mqm user of AIX 64-bit client |
|
|
 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 |
|
 |
bruce2359 |
Posted: Sat Jan 02, 2010 11:16 am Post subject: |
|
|
 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 |
|
 |
mvic |
Posted: Sat Jan 02, 2010 12:35 pm Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Sat Jan 02, 2010 1:11 pm Post subject: |
|
|
 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 |
|
 |
mvic |
Posted: Sat Jan 02, 2010 1:14 pm Post subject: |
|
|
 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 |
|
 |
Mut1ey |
Posted: Sat Jan 02, 2010 4:32 pm Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Sat Jan 02, 2010 4:35 pm Post subject: |
|
|
 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 |
|
 |
|