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 API Support » MQCONN and 2059 Error

Post new topic  Reply to topic
 MQCONN and 2059 Error « View previous topic :: View next topic » 
Author Message
Testo
PostPosted: Tue Sep 07, 2004 11:16 pm    Post subject: MQCONN and 2059 Error Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
kirani
PostPosted: Tue Sep 07, 2004 11:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Testo
PostPosted: Wed Sep 08, 2004 1:03 am    Post subject: Feedback Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
bower5932
PostPosted: Wed Sep 08, 2004 5:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Testo
PostPosted: Wed Sep 08, 2004 6:11 am    Post subject: Thank you Bower and Kiran Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
RogerLacroix
PostPosted: Wed Sep 08, 2004 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Testo
PostPosted: Wed Sep 08, 2004 8:51 am    Post subject: Roger... Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
RogerLacroix
PostPosted: Wed Sep 08, 2004 9:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Testo
PostPosted: Wed Sep 08, 2004 9:05 am    Post subject: Thanks Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQCONN and 2059 Error
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.