|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ RC 2011 (MQRC_ENVIRONMENT_ERROR) |
« View previous topic :: View next topic » |
Author |
Message
|
prasannanb |
Posted: Thu Dec 08, 2011 1:09 am Post subject: MQ RC 2011 (MQRC_ENVIRONMENT_ERROR) |
|
|
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 |
|
 |
Vitor |
Posted: Thu Dec 08, 2011 5:51 am Post subject: Re: MQ RC 2011 (MQRC_ENVIRONMENT_ERROR) |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Thu Dec 08, 2011 3:36 pm Post subject: |
|
|
 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 |
|
 |
prasannanb |
Posted: Sun Dec 11, 2011 11:11 pm Post subject: |
|
|
Apprentice
Joined: 17 Apr 2009 Posts: 35
|
Solved. On AIX, libraries should be linked to mqic_r instead mqic. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Mon Dec 12, 2011 5:41 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|