|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
C# App. AMQ9208 Error On Recieve... |
« View previous topic :: View next topic » |
Author |
Message
|
sonicsqwirl |
Posted: Wed Apr 26, 2006 8:47 am Post subject: C# App. AMQ9208 Error On Recieve... |
|
|
Newbie
Joined: 26 Apr 2006 Posts: 4
|
I'm currently developing a C# application with the .Net APIs. The application works fine until it exits. Apon exit, the MQ Log file reads
Code: |
AMQ9208: Error on receive from host xxxxxxxxxxx.
EXPLANATION:
An error occurred receiving data from xxxxxxxxxxx TCP/IP. This may be due
to a communications failure.
ACTION:
The return code from the TCP/IP (read) call was 131 (X'83'). Record these
values and tell the systems administrator. |
Every time I Open a QM, I make sure to Disconnect() and Close() and even set it to null when I'm done with it. But still, when the program ends, the above post is created in the MQ logs.... what am I missing here?
Thanks in Advance,
Scott |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 26, 2006 9:09 am Post subject: Re: C# App. AMQ9208 Error On Recieve... |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
sonicsqwirl wrote: |
Every time I Open a QM, I make sure to Disconnect() and Close() |
do you check the return codes of those calls to make sure they actually worked. Do you call them 100% of the time? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
sonicsqwirl |
Posted: Wed Apr 26, 2006 9:26 am Post subject: |
|
|
Newbie
Joined: 26 Apr 2006 Posts: 4
|
Those calls return void. How else can I check the return codes. And yes I close them 100% of the time... I have watches set in the debugger and they all go to IsOpen, OpenStatus and IsConnected equal to False. |
|
Back to top |
|
 |
Leigh Kendall |
Posted: Wed Apr 26, 2006 11:37 am Post subject: |
|
|
 Acolyte
Joined: 10 Apr 2003 Posts: 66 Location: Hartford, CT
|
According to the documentation:
"AMQ9208 Error on receive from host &3.
Explanation: An error occurred receiving data from
&3 over &4. This may be due to a communications
failure.
User Response: The return code from the &4&5 call
was &1 (X’&2’). Record these values and tell the
systems administrator."
What do you mean by "exits". Disconnects? Your app ends?
As long as you're wrapping calls in try/catch or catching somewhere up the stack, you should catch any exceptions being thrown. _________________ Leigh Kendall |
|
Back to top |
|
 |
sonicsqwirl |
Posted: Wed Apr 26, 2006 1:00 pm Post subject: |
|
|
Newbie
Joined: 26 Apr 2006 Posts: 4
|
I figured it out... after i opened the QM with the constructor, i called qm.Connect()... I wasn't aware that calling the QM constuctor connects to the QM... and calling the Connect() method makes an additional connection. So i had 2 connections on 1 QM, but the Disconnect method was only closing 1... and calling the Close() method on the QM and even nulling it out still didn't close the second connection.
Good Times...
Thanks all,
Scott |
|
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
|
|
|
|