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 D051D9800 for ; Wed, 21 Mar 2012 18:22:01 +0000 (UTC) Received: (qmail 657 invoked by uid 500); 21 Mar 2012 18:22:01 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 596 invoked by uid 500); 21 Mar 2012 18:22:01 -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 403 invoked by uid 99); 21 Mar 2012 18:22:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 18:22:01 +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; Wed, 21 Mar 2012 18:22:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0E47A1B66F8 for ; Wed, 21 Mar 2012 18:21:40 +0000 (UTC) Date: Wed, 21 Mar 2012 18:21:40 +0000 (UTC) From: "Timothy Bish (Commented) (JIRA)" To: dev@activemq.apache.org Message-ID: <1999430899.43156.1332354100059.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1020941683.41847.1332341981544.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3782) FailoverTransport throws NPE 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-3782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234798#comment-13234798 ] Timothy Bish commented on AMQ-3782: ----------------------------------- Do you have a test case that can reproduce this. I don't really see a way in the current code that this could happen. > FailoverTransport throws NPE > ---------------------------- > > Key: AMQ-3782 > URL: https://issues.apache.org/jira/browse/AMQ-3782 > Project: ActiveMQ > Issue Type: Bug > Components: Transport > Affects Versions: 5.2.0 > Environment: debian java-6-sun activemq 5.2 > Reporter: Wojciech Oczkowski > > Failover transport occasionally throws NullPointerException > INFO | jvm 1 | 2012/03/19 09:25:05 | Exception in thread "ActiveMQ Failover Worker: 2009192672" java.lang.NullPointerException > INFO | jvm 1 | 2012/03/19 09:25:05 | at org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:125) > INFO | jvm 1 | 2012/03/19 09:25:05 | at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) > INFO | jvm 1 | 2012/03/19 09:25:05 | at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) > It seems like DedicatedTaskRunner starts Thread before FailoverTransport finish initializing reconnectTask field. > Same code is present in 5.5.1 so it's possible that same bug is out there -- 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