Author |
Message
|
Nick Hall |
Posted: Tue Oct 28, 2008 2:25 pm Post subject: Error Code 2059 Returned By MQCONN |
|
|
Newbie
Joined: 28 Oct 2008 Posts: 4
|
G'day,
I am using MQ version 6.0 on Windows 2000 Server. I've got MQ installed on the same machine that I am running my application on (the application is just trying to connect to a queue manager, open a queue and then receive a message). The application has been written in C. I had to write it in C because I am using Borland C++ Builder 6.0
But for reason whenever I called the MQCONN function it returns an error code of 2059 and I've got no idea why. I wrote a similar program on another machine, but that time it was in C++ using Visual C++ Express.
I've trawled through this forums looking for other people who had similar problems, but that solutions that worked for them, haven't seemed to have solved my problem.
I was just wondering if anyone had any ideas on what I could do to try and get my C application to connect to the queue manager. Thanks for any information you can provide.
Regards,
Nick Hall |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Oct 28, 2008 9:14 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
2059 writes additional diagnostics to the MQ client error log file. Did you look at the end of C:\Program Files\IBM\WebSphere MQ\errors\AMQERR01.LOG ? _________________ Glenn |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Oct 28, 2008 9:36 pm Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
adding more info to you
Reason Code 2059 x'80B'
MQRC_Q_MGR_NOT_AVAILABLE
On an MQCONN or MQCONNX call, the queue manager identified by the QMgrName parameter is not available for connection. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
zboy |
Posted: Tue Oct 28, 2008 11:06 pm Post subject: |
|
|
Novice
Joined: 01 Oct 2008 Posts: 13
|
Quote: |
Borland C++ Builder 6.0 |
try using a supported compiler |
|
Back to top |
|
 |
Nick Hall |
Posted: Wed Oct 29, 2008 3:22 pm Post subject: |
|
|
Newbie
Joined: 28 Oct 2008 Posts: 4
|
gbaddeley wrote: |
2059 writes additional diagnostics to the MQ client error log file. Did you look at the end of C:\Program Files\IBM\WebSphere MQ\errors\AMQERR01.LOG ? |
Looking at the error log file, it has the following output:
10/30/08 08:02:17 - Process(5272.1) User(Administrator) Program(mq.exe)
AMQ6118: An internal WebSphere MQ error has occurred (0)
EXPLANATION:
An error has been detected, and the MQ error recording routine has been called.
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.
----- amqxfdcp.c : 735 --------------------------------------------------------
10/30/08 08:02:17 - Process(5272.1) User(Administrator) Program(mq.exe)
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 5272.
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.
----- amqxfdcp.c : 779 --------------------------------------------------------
I checked the Windows event viewer log to see if I could get more information and it referred me to the following file (too big too post in the thread):
AMQ5272.0.FDC
Not sure what all the information in that file refers to.
zboy wrote: |
try using a supported compiler |
Even though it isn't a supported compiler, it was still able to compile and link the program properly. I was also able to transfer the .exe that it created to another test computer (this one using Windows XP and MQ 7.0) and the application worked properly. So I'd say it is more likely to be a problem with the environment of the other computer, than any problem due to Borland. |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Oct 30, 2008 5:57 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The FDC has this in it:
Comment1 :- Duplicate AMQXCS2.dll found - see below
and below gives details about where it found the two files. I'd suggest looking at the details to see if you need to delete your extra file. |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Oct 30, 2008 6:38 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Quote: |
AMQXCS2.dll locations
00CD5470 4475706C 69636174 Duplicat
00CD5480 6520414D 51584353 322E646C 6C202D20 e AMQXCS2.dll -
00CD5490 54686973 206F6E65 20696E20 443A5C70 This one in D:\p
00CD54A0 726F6A65 6374735C 6D646C5C 61707073 rojects\mdl\apps
00CD54B0 5C6D715C 6F626A5C 616D7178 6373322E \mq\obj\amqxcs2.
00CD54C0 646C6C2C 20647570 6C696361 74652069 dll, duplicate i
00CD54D0 6E20443A 5C50726F 6772616D 2046696C n D:\Program Fil
00CD54E0 65735C49 424D5C57 65625370 68657265 es\IBM\WebSphere
00CD54F0 204D515C 62696E5C 616D7178 6373322E MQ\bin\amqxcs2.
00CD5500 646C6C dll
|
Get rid of the amqxcs2.dll in your app directory. You shouldn't be carting MQ dlls around with your app. _________________ Glenn |
|
Back to top |
|
 |
Nick Hall |
Posted: Tue Nov 04, 2008 6:28 pm Post subject: |
|
|
Newbie
Joined: 28 Oct 2008 Posts: 4
|
gbaddeley wrote: |
Quote: |
AMQXCS2.dll locations
00CD5470 4475706C 69636174 Duplicat
00CD5480 6520414D 51584353 322E646C 6C202D20 e AMQXCS2.dll -
00CD5490 54686973 206F6E65 20696E20 443A5C70 This one in D:\p
00CD54A0 726F6A65 6374735C 6D646C5C 61707073 rojects\mdl\apps
00CD54B0 5C6D715C 6F626A5C 616D7178 6373322E \mq\obj\amqxcs2.
00CD54C0 646C6C2C 20647570 6C696361 74652069 dll, duplicate i
00CD54D0 6E20443A 5C50726F 6772616D 2046696C n D:\Program Fil
00CD54E0 65735C49 424D5C57 65625370 68657265 es\IBM\WebSphere
00CD54F0 204D515C 62696E5C 616D7178 6373322E MQ\bin\amqxcs2.
00CD5500 646C6C dll
|
Get rid of the amqxcs2.dll in your app directory. You shouldn't be carting MQ dlls around with your app. |
Yes, that did the trick. Thank you and everyone else for the help and assistance provided. |
|
Back to top |
|
 |
donb |
Posted: Tue Dec 16, 2008 8:14 am Post subject: Error Code 2059 Returned By MQCONN |
|
|
Newbie
Joined: 16 Dec 2008 Posts: 1
|
I have read the replies and have a like problem. The FDC error however show the same path/dir for the dll so I am not able to remove one. I have seached the server (C,D,E disks) for the dll and it only shows it in the same place. The PATH contains the same dir entry.
AMQXCS2.dll locations
00635AD0 4475706C 69636174 Duplicat
00635AE0 6520414D 51584353 322E646C 6C202D20 e AMQXCS2.dll -
00635AF0 54686973 206F6E65 20696E20 443A5C50 This one in D:\P
00635B00 726F6772 616D2046 696C6573 5C49424D rogram Files\IBM
00635B10 5C576562 53706865 7265204D 515C6269 \WebSphere MQ\bi
00635B20 6E5C616D 71786373 322E646C 6C2C2064 n\amqxcs2.dll, d
00635B30 75706C69 63617465 20696E20 443A5C50 uplicate in D:\P
00635B40 726F6772 616D2046 696C6573 5C49424D rogram Files\IBM
00635B50 5C576562 53706865 7265204D 515C6269 \WebSphere MQ\bi
00635B60 6E5C616D 71786373 322E646C 6C n\amqxcs2.dll
Does anyone have a suggestion? |
|
Back to top |
|
 |
|