Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7417926C for ; Fri, 20 Apr 2012 12:33:02 +0000 (UTC) Received: (qmail 46770 invoked by uid 500); 20 Apr 2012 12:33:02 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 46740 invoked by uid 500); 20 Apr 2012 12:33:02 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 46732 invoked by uid 99); 20 Apr 2012 12:33:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 12:33:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 12:33:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6653A414D4 for ; Fri, 20 Apr 2012 12:32:41 +0000 (UTC) Date: Fri, 20 Apr 2012 12:32:41 +0000 (UTC) From: "Timothy Bish (Resolved) (JIRA)" To: dev@activemq.apache.org Message-ID: <998524641.9458.1334925161420.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <406451935.32404.1334659996243.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMQ-3809) Simple ActiveMQ consumer dies on failover MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQ-3809. ------------------------------- Resolution: Duplicate Fix Version/s: 5.6.0 This was resolved by the fix for AMQ-796 > Simple ActiveMQ consumer dies on failover > ----------------------------------------- > > Key: AMQ-3809 > URL: https://issues.apache.org/jira/browse/AMQ-3809 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, Transport > Affects Versions: 5.5.1 > Environment: solaris, linux > Reporter: Bhanu > Fix For: 5.6.0 > > > I have a simple consumer application which connects to the broker using failover url. The consumer uses Message listener to asynchronously listen to messages. Whenever i kill my primary broker, I get an EOF exception(which is expected), the consumer tries to connect to failover broker but before it could finish the reconnect, it shuts down. > My simple producer connecting with the same failover url never dies and successfully connects to failover broker. > What is going on here? > Posting the snippet with which the consumer dies:- > 2012-04-17 06:45:25,771 WARN org.apache.activemq.transport.failover.FailoverTransport - Transport (host1/10.240.170.28:61616) failed to tcp://host1:61616 , attempting to automatically reconnect due to: java.io.EOFException > 2012-04-17 06:45:25,772 DEBUG org.apache.activemq.transport.failover.FailoverTransport - Transport failed with the following exception: > java.io.EOFException > at java.io.DataInputStream.readInt(DataInputStream.java:392) > at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:269) > at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:227) > at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219) > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202) > at java.lang.Thread.run(Thread.java:722) > 2012-04-17 06:45:25,774 DEBUG org.apache.activemq.transport.failover.FailoverTransport - urlList connectionList:[tcp://host2:61616, tcp://host1:61616], from: [tcp://host1:61616, tcp://host2:61616] > 2012-04-17 06:45:25,774 DEBUG org.apache.activemq.transport.failover.FailoverTransport - Attempting connect to: tcp://host2:61616 > [20120417 06:45:25.776 EDT (Shutdown-ActiveMQConsumer) ActiveMQConsumer#stop INFO] Stopping the consumer... > 2012-04-17 06:45:26,242 DEBUG org.apache.activemq.transport.failover.FailoverTransport - Stopped. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira