Author |
Message
|
Testo |
Posted: Tue Sep 07, 2004 11:16 pm Post subject: MQCONN and 2059 Error |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
Solaris 8, WMQ 5.3.2, C++ program.
I get a 2059 return code (QMgr not available) when performing a MQCONN; I'm sure the queue manager is up and running, it is the default one, the listener is running on 1414, the sample programs provided with the SW are working fine.
The QMgr has been created and started by the user 'sysint', belonging to the 'mqm' group; the C++ program is launched by the same 'sysint' user.
Any ideas?
Thanks in advance,
Andrea Tedone
IBM IT Specialist |
|
Back to top |
|
 |
kirani |
Posted: Tue Sep 07, 2004 11:24 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
See if your application is compiled with "Server" libraries or "client" libraries. If compiled with client libraries then you run it by setting MQSERVER variable. Also, try running amqsputc and amqsput applications. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
Testo |
Posted: Wed Sep 08, 2004 1:03 am Post subject: Feedback |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
Thank you Kiran for your reply.
1. the program is compiled with libmqm.so (server), libmqmcs.so, libmqmzse.so
2. I've tried amqsputc and amqsgetc samples and they are fine
I've also enabled the trace but it didn't help...
I've also checked the nofile(descriptors) = 1024 kernel parameters that seemed to have been responsible for a simil behavior in the past
Don't know what to do...
Andrea |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Sep 08, 2004 5:51 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
If your program is built with the server libraries, then the listener will have no effect on it. Have you tried the non-client version of the samples (ie, amqsput (no c) and amqsget (no c))? What do they do? |
|
Back to top |
|
 |
Testo |
Posted: Wed Sep 08, 2004 6:11 am Post subject: Thank you Bower and Kiran |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
We probably found the source of our troubles. We used GCC as the C++ compiler but it seems not to be supported by MQ libraries.
In fact, we recompiled with GCC the samples (both C and C++ ones) provided with WMQ and despite compiled and linked correctly, we get the 2059 error as well.
If I will discover something else, I will update this thread.
Cheers,
Andrea
PS thank you for your contributes...  |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Sep 08, 2004 7:56 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
I use GCC on Solaris 8 all the time for 'C' programs for both binding & client mode builds. And it works just fine. I'm using GCC v3.3.2 for Solaris.
Let's see your makefile.
Also, remember MQ objects like queues, channels, etc.. and even queue manager names are case sensitive.
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
Testo |
Posted: Wed Sep 08, 2004 8:51 am Post subject: Roger... |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
...are you using just C or also C++ programs?
Btw, our GCC version is 3.3.2.
I don't have the makefile at my disposal, I'll post it tomorrow.
Cheers,
Andrea |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Sep 08, 2004 9:01 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
As I stated: 'C' programs.
Linking MQ C++ with GCC does NOT work because of the mangled MQ libraries. Don't bother trying, because there is no fix for this.
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Last edited by RogerLacroix on Wed Sep 08, 2004 9:08 am; edited 1 time in total |
|
Back to top |
|
 |
Testo |
Posted: Wed Sep 08, 2004 9:05 am Post subject: Thanks |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
Thank you very much Roger for the clarifications.
I should then be able to compile the sample C program but in any case not the target application that is already written in C++.
Cheers,
Andrea |
|
Back to top |
|
 |
|