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 » MQ RC 2011 (MQRC_ENVIRONMENT_ERROR)

Post new topic  Reply to topic
 MQ RC 2011 (MQRC_ENVIRONMENT_ERROR) « View previous topic :: View next topic » 
Author Message
prasannanb
PostPosted: Thu Dec 08, 2011 1:09 am    Post subject: MQ RC 2011 (MQRC_ENVIRONMENT_ERROR) Reply with quote

Apprentice

Joined: 17 Apr 2009
Posts: 35

Hi,

We have a MQ client application written in C.
Calling MQCONNX to connect to the queue manager, with MQCNO option MQCNO_RECONNECT. We are using MQ Version: 7.0.1.6

While calling MQCONNX, getting error "MQRC_ENVIRONMENT_ERROR"

Have anybody faced this problem?
Please note that we are using MQ 32bit libraries (as per requirement)


Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 08, 2011 5:51 am    Post subject: Re: MQ RC 2011 (MQRC_ENVIRONMENT_ERROR) Reply with quote

Grand High Poobah

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

prasannanb wrote:
Have anybody faced this problem?


Yes, when something in the environment is incorrectly set and the connection fails.

This is about as good as it going to get in terms of advice. You've provided no information about what's happening apart from some cryptic comment on 32bit libraries to meet a requirement. What requirement? For that matter, what OS? Presumably a 64bit one or using 32bit libraries wouldn't be a big deal but you don't say what platform, why 32bit or how you've incorporated 32bit libs into your application! Particually how have you verified what you think your application is using is what it is using - how do you know it's not using 64bit libs?

It would also help if you mentioned how you've set up the MQCONNX call and under what circumstances the error comes out. You make a specific point of mentioning the reconnect option; does the error come out on the reconnection then? What causes the failed connection?

Most importantly, what have you already done to diagnose & resolve the problem? Aside from being a valuable source of information for us, it'll prevent us suggesting things which have already failed to help.

Better information, better advice.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Dec 08, 2011 3:36 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

What MQ library did you link to your application? i.e. mqm or mqic

To use MQCONNX in your application, you need to link mqic library.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
prasannanb
PostPosted: Sun Dec 11, 2011 11:11 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Apr 2009
Posts: 35

Solved. On AIX, libraries should be linked to mqic_r instead mqic.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Dec 12, 2011 5:41 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

prasannanb wrote:
Solved. On AIX, libraries should be linked to mqic_r instead mqic.

For future readers, prasannanb was linking either mqm or mqm_r with their application but really needed mqic or mqic_r (s/he said mqic_r).

You link mqm or mqic with non-threaded applications and you link mqm_r or mqic_r with threaded applications.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQ RC 2011 (MQRC_ENVIRONMENT_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.