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 » Message getting delivered twice

Post new topic  Reply to topic
 Message getting delivered twice « View previous topic :: View next topic » 
Author Message
morphi
PostPosted: Thu Jun 04, 2009 11:24 am    Post subject: Message getting delivered twice Reply with quote

Newbie

Joined: 08 Mar 2009
Posts: 4

Hi All,

I have a program(connecting as client) which is reading the incoming message , reads the reply to queue and queue manager fields and sends a reply to that particular queue. I am doing the get and put under syncpoint and comitting after each get and put.

The problem is that when i see the output queue, there are two replies for each input message. The application name for one of the message is the exe name and for the duplicate message its the destination queue manager. The logs say
AMQ9208: Error on receive from host localhost (127.0.0.1).

EXPLANATION:
An error occurred receiving data from localhost (127.0.0.1) over TCP/IP. This
may be due to a communications failure.
ACTION:
The return code from the TCP/IP (recv) call was 10054 (X'2746'). Record these
values and tell the systems administrator.

I have the windows mq server(5.3) and client setup in my computer.

Please help. Thank you.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jun 04, 2009 11:27 am    Post subject: Re: Message getting delivered twice Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

morphi wrote:
I have the windows mq server(5.3) and client setup in my computer.


That's the wrong version to use.

It has nothing to do with your problem, but it is still wrong to use MQ v5.3 for anything.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Jun 04, 2009 12:45 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Check the backout count of the message after the MQGET - if it is more than zero then you have read it before.

I assume the commit is after the get and put, not after each of them?
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Jun 04, 2009 4:19 pm    Post subject: Re: Message getting delivered twice Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

morphi wrote:
...AMQ9208: Error on receive from host localhost (127.0.0.1).

EXPLANATION:
An error occurred receiving data from localhost (127.0.0.1) over TCP/IP. This may be due to a communications failure.
ACTION:
The return code from the TCP/IP (recv) call was 10054 (X'2746'). Record these values and tell the systems administrator.


Quote:
http://msdn.microsoft.com/en-us/library/ms740668.aspx states:
WSAECONNRESET 10054
Connection reset by peer.
An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.


This usually happens when a program terminates without disconnecting the MQ Client connection. The TCP/IP Socket session died at one end.
Network or system failure or TCP stack failure is another possible cause, but its unlikely because you are on the 'localhost'.
_________________
Glenn
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 » General IBM MQ Support » Message getting delivered twice
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.