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_ENVIRONMENT_ERROR when running multiple instances in c#

Post new topic  Reply to topic
 MQ_ENVIRONMENT_ERROR when running multiple instances in c# « View previous topic :: View next topic » 
Author Message
talh
PostPosted: Wed Jun 23, 2010 5:30 am    Post subject: MQ_ENVIRONMENT_ERROR when running multiple instances in c# Reply with quote

Newbie

Joined: 23 Jun 2010
Posts: 3

Hello, i have 2 c# applications that connect to different queues on
the same server and the same queue manager.
when they are running together at the same time,
the second application throws an "MQ_ENVIRONMENT_ERROR" when
trying to construct the queue manager.

anyone has an idea what am I doing wrong?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Jun 23, 2010 5:59 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Give us a clue, please.

What was the exact error?

What did you discover in the error logs?

Is it always the same application that gets the error? Or does just whichever is started 2nd that gets the error?

Platform? Version of WMQ?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
talh
PostPosted: Wed Jun 23, 2010 6:12 am    Post subject: re:MQ_ENVIRONMENT_ERROR when running multiple instances in c Reply with quote

Newbie

Joined: 23 Jun 2010
Posts: 3

Hello,
the error code is 2012, and the exception is "MQRC_ENVIRONMENT_ERROR"

the error logs doesn't show anything

it is the applicaiton that started 2nd, no matter which one.
platform - windows 7, visual studio 2008
mq version 6
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 23, 2010 6:17 am    Post subject: Re: re:MQ_ENVIRONMENT_ERROR when running multiple instances Reply with quote

Grand High Poobah

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

talh wrote:
the error code is 2012, and the exception is "MQRC_ENVIRONMENT_ERROR"


And did you look up that error?

If you did, why did you discount this saying that your application is linked with the wrong libraries?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashikanth_in
PostPosted: Wed Jun 23, 2010 10:26 am    Post subject: Re: re:MQ_ENVIRONMENT_ERROR when running multiple instances Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

talh wrote:
Hello,
the error code is 2012, and the exception is "MQRC_ENVIRONMENT_ERROR"

the error logs doesn't show anything

it is the applicaiton that started 2nd, no matter which one.
platform - windows 7, visual studio 2008
mq version 6


Do you you SSL? 2012 appear to be related to secure connections.
Back to top
View user's profile Send private message
shashikanth_in
PostPosted: Wed Jun 23, 2010 10:28 am    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

Small correction:
Do you use Secure connection to queue manager i.e SSL? 2012 appear to be related to secure connections.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 23, 2010 10:32 am    Post subject: Reply with quote

Grand High Poobah

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

shashikanth_in wrote:
2012 appear to be related to secure connections.


How?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
talh
PostPosted: Thu Jun 24, 2010 12:53 am    Post subject: Reply with quote

Newbie

Joined: 23 Jun 2010
Posts: 3

regarding the ibm page on the error code:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqsao.doc/zm36870_.htm

they talk about linking to the wrong libraries (threaded/ not threaded)
I know of only one library for mq .net ("amqmdnet.dll") -

also, they talk about calls to calls to mqbegin, which i don't do..
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 24, 2010 5:26 am    Post subject: Reply with quote

Grand High Poobah

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

So you're not using syncpoint and your application is completely thread safe?

Then you've found a bug in the WMQ software & should raise a PMR.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQ_ENVIRONMENT_ERROR when running multiple instances in c#
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.