Author |
Message
|
MQNETrookie |
Posted: Sat Jun 20, 2009 7:55 pm Post subject: HELP!!!! |
|
|
Novice
Joined: 20 Jun 2009 Posts: 19
|
I am getting this
AMQ9213: A communications error for TCP/IP occurred.
EXPLANATION:
An unexpected error occurred in communications.
ACTION:
The return code from the TCP/IP(recv) [TIMEOUT] 180 seconds call was 0 (X'0').
Record these values and tell the systems administrator.
while debugging the following code
MQEnvironment.Hostname = QHostName;
MQEnvironment.Channel = QChannelName;
MQEnvironment.Port = QPort;
MQEnvironment.properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
qMgr = new MQQueueManager(QueManager); <---Exception
Any idea? |
|
Back to top |
|
 |
MQNETrookie |
Posted: Sat Jun 20, 2009 7:57 pm Post subject: HELP!!!! (contd) |
|
|
Novice
Joined: 20 Jun 2009 Posts: 19
|
Actually I am trying to connect to a MQ Listener in Linux OS from Windows. Also I am able to telnet the host and port. Please help. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Jun 21, 2009 1:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Obvious suspect is a network component. What did the network people say when you showed them the recorded values (as indicated by the error message)? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Jun 21, 2009 7:30 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
... What's the LinkedException say is the MQ Reason Code associated with the channel failure? |
|
Back to top |
|
 |
MQNETrookie |
Posted: Mon Jun 22, 2009 7:51 am Post subject: |
|
|
Novice
Joined: 20 Jun 2009 Posts: 19
|
The exception reasoncode is 2059 |
|
Back to top |
|
 |
sumit |
Posted: Mon Jun 22, 2009 8:09 am Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
Is your queue manager running? There could some more reasons of getting 2059. Can you explain what exactly are you trying to do and what's your config? _________________ Regards
Sumit |
|
Back to top |
|
 |
MQNETrookie |
Posted: Mon Jun 22, 2009 8:56 am Post subject: |
|
|
Novice
Joined: 20 Jun 2009 Posts: 19
|
One more thing is, should the MQ Listener has it's own Channel Name and Queue Manager Name different than the MQ itself? |
|
Back to top |
|
 |
MQNETrookie |
Posted: Mon Jun 22, 2009 9:05 am Post subject: |
|
|
Novice
Joined: 20 Jun 2009 Posts: 19
|
That is part of the problem, I have not access to the MQ Listener box, the group that maintaining the MQ Listening said the queue manager is running, is there anyway for me to prove that myself? Also this is what the MQ Listener is configured
MQ_PORT::80
MQ_HOSTNAME::<MQ HOST IP>
MQ_CHANNEL::IVR.CLIENT
MQ_QUEUEMANAGER::M1DQ
and I am using the following for my client app to send message to the Listener
MQEnvironment.Hostname = Listener HOST's IP;
MQEnvironment.Channel = "IVR.CLIENT";
MQEnvironment.Port = Listener listening port;
MQEnvironment.properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
qMgr = new MQQueueManager(M1MQ);
Thanks for the help. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 22, 2009 9:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MQNETrookie wrote: |
Also this is what the MQ Listener is configured
MQ_PORT::80
MQ_HOSTNAME::53.30.9.3
MQ_CHANNEL::IVR.CLIENT
MQ_QUEUEMANAGER::M1DQ
|
Ok, odd choice for a listener port. Not only is it reserved for another purpose, but it's a very low number.
It also doesn't match the port number shown here:
MQNETrookie wrote: |
MQEnvironment.Hostname = "166.46.121.225" (Listener's IP);
MQEnvironment.Channel = "IVR.CLIENT";
MQEnvironment.Port = 12126 (Listener listening port);
MQEnvironment.properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
qMgr = new MQQueueManager(M1MQ);
|
_________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
MQNETrookie |
Posted: Mon Jun 22, 2009 9:35 am Post subject: |
|
|
Novice
Joined: 20 Jun 2009 Posts: 19
|
I need to send message to the Listener, should I point directly to the MQ Host IP/Port or Listener Host IP/Port? |
|
Back to top |
|
 |
MQNETrookie |
Posted: Mon Jun 22, 2009 11:27 am Post subject: |
|
|
Novice
Joined: 20 Jun 2009 Posts: 19
|
I guess I need to go back to the basic. How can I tell whether the Listener and the Queue Manager is running? |
|
Back to top |
|
 |
sumit |
Posted: Mon Jun 22, 2009 11:39 am Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
MQNETrookie wrote: |
I need to send message to the Listener, should I point directly to the MQ Host IP/Port or Listener Host IP/Port? |
You need to understand that you are not sending messages to the listener.
Let's take it this way. Your friend wants to send you a letter and he wants only you open it. He gave address like, your name (queue name), your house name (queue manager name) and pin code (listener number). It's the combination of 3 which will actually helps to deliver a letter and so a message to a queue.
Hit the MQ documents and you will get more details. _________________ Regards
Sumit |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 22, 2009 11:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MQNETrookie wrote: |
How can I tell whether the Listener and the Queue Manager is running? |
MQNETrookie wrote: |
I have not access to the MQ Listener box |
This will make it more difficult for you to determine anything. The usual dodge is to telnet to the port, and you've successfully done that (according to a previous post).
Your only real recourse is the support of the group running the WMQ set up. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
MQNETrookie |
Posted: Mon Jun 22, 2009 12:39 pm Post subject: |
|
|
Novice
Joined: 20 Jun 2009 Posts: 19
|
sumit wrote: |
MQNETrookie wrote: |
I need to send message to the Listener, should I point directly to the MQ Host IP/Port or Listener Host IP/Port? |
You need to understand that you are not sending messages to the listener.
Let's take it this way. Your friend wants to send you a letter and he wants only you open it. He gave address like, your name (queue name), your house name (queue manager name) and pin code (listener number). It's the combination of 3 which will actually helps to deliver a letter and so a message to a queue.
Hit the MQ documents and you will get more details. |
So basically my settings is correct then?
MQEnvironment.Hostname = Listener HOST's IP;
MQEnvironment.Channel = "IVR.CLIENT";
MQEnvironment.Port = Listener listening port;
MQEnvironment.properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
qMgr = new MQQueueManager(M1MQ); <-- Host Queue Manager Name
Thanks for the help |
|
Back to top |
|
 |
sumit |
Posted: Tue Jun 23, 2009 12:14 am Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
MQNETrookie wrote: |
So basically my settings is correct then? |
Only then, when you are passing correct parameters. Ask for screen shots of listener and queue manager status from your MQ support group and cross check your configuration. _________________ Regards
Sumit |
|
Back to top |
|
 |
|