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 » General IBM MQ Support » amq9213: a communications error for tcp/ip occured

Post new topic  Reply to topic Goto page 1, 2  Next
 amq9213: a communications error for tcp/ip occured « View previous topic :: View next topic » 
Author Message
MQNETrookie
PostPosted: Sat Jun 20, 2009 7:55 pm    Post subject: HELP!!!! Reply with quote

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
View user's profile Send private message
MQNETrookie
PostPosted: Sat Jun 20, 2009 7:57 pm    Post subject: HELP!!!! (contd) Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sun Jun 21, 2009 1:28 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Sun Jun 21, 2009 7:30 am    Post subject: Reply with quote

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
View user's profile Send private message
MQNETrookie
PostPosted: Mon Jun 22, 2009 7:51 am    Post subject: Reply with quote

Novice

Joined: 20 Jun 2009
Posts: 19

The exception reasoncode is 2059
Back to top
View user's profile Send private message
sumit
PostPosted: Mon Jun 22, 2009 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
MQNETrookie
PostPosted: Mon Jun 22, 2009 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
MQNETrookie
PostPosted: Mon Jun 22, 2009 9:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Jun 22, 2009 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message
MQNETrookie
PostPosted: Mon Jun 22, 2009 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message
MQNETrookie
PostPosted: Mon Jun 22, 2009 11:27 am    Post subject: Reply with quote

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
View user's profile Send private message
sumit
PostPosted: Mon Jun 22, 2009 11:39 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Mon Jun 22, 2009 11:50 am    Post subject: Reply with quote

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
View user's profile Send private message
MQNETrookie
PostPosted: Mon Jun 22, 2009 12:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
sumit
PostPosted: Tue Jun 23, 2009 12:14 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » amq9213: a communications error for tcp/ip occured
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.