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 2356011FFC for ; Fri, 8 Aug 2014 01:22:12 +0000 (UTC) Received: (qmail 61654 invoked by uid 500); 8 Aug 2014 01:22:12 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 61586 invoked by uid 500); 8 Aug 2014 01:22:11 -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 61571 invoked by uid 99); 8 Aug 2014 01:22:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 01:22:11 +0000 Date: Fri, 8 Aug 2014 01:22:11 +0000 (UTC) From: "Lee Butts (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMQ-5315) Race condition causes NullPointerException in DemandForwardingBridgeSupport.collectBrokerInfos MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Lee Butts created AMQ-5315: ------------------------------ Summary: Race condition causes NullPointerException in DemandForwardingBridgeSupport.collectBrokerInfos Key: AMQ-5315 URL: https://issues.apache.org/jira/browse/AMQ-5315 Project: ActiveMQ Issue Type: Bug Affects Versions: 5.10.0 Reporter: Lee Butts Priority: Critical We have seen the following NPE setting up a demand forwarding bridge {code} java.lang.NullPointerException: null at org.apache.activemq.network.DemandForwardingBridgeSupport.collectBrokerInfos(DemandForwardingBridgeSupport.java:365) [activemq-broker-5.10.0.jar:5.10.0] at org.apache.activemq.network.DemandForwardingBridgeSupport.access$400(DemandForwardingBridgeSupport.java:105) [activemq-broker-5.10.0.jar:5.10.0] at org.apache.activemq.network.DemandForwardingBridgeSupport$5.run(DemandForwardingBridgeSupport.java:331) [activemq-broker-5.10.0.jar:5.10.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_60] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60] {code} Code should return if futureRemoteBrokerInfo.get() returns null and fireBridgeFailed() is called -- This message was sent by Atlassian JIRA (v6.2#6252)