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 9AEB1102A8 for ; Tue, 25 Nov 2014 20:31:17 +0000 (UTC) Received: (qmail 48787 invoked by uid 500); 25 Nov 2014 20:31:17 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 48712 invoked by uid 500); 25 Nov 2014 20:31:16 -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 48646 invoked by uid 99); 25 Nov 2014 20:31:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 20:31:16 +0000 Date: Tue, 25 Nov 2014 20:31:16 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMQ-5442) NullPointerException in SimpleDiscoveryEvent on Shutdown MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-5442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQ-5442. ------------------------------- Resolution: Fixed Fix Version/s: 5.11.0 Assignee: Timothy Bish Added check before attempting to stop task runner > NullPointerException in SimpleDiscoveryEvent on Shutdown > -------------------------------------------------------- > > Key: AMQ-5442 > URL: https://issues.apache.org/jira/browse/AMQ-5442 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.10.0 > Reporter: John Arnesen > Assignee: Timothy Bish > Fix For: 5.11.0 > > > If startup of a broker fails when using SimpleDiscoveryAgent, then you will encounter a NullPointerException on shutdown because the TaskRunnerFactory instance is created during startup and there is no check to ensure it was created before attempting the shutdown: > {quote} > org.apache.activemq.network.DiscoveryNetworkConnector Could not stop service: DiscoveryNetworkConnector:NC:BrokerService[...]. Reason: java.lang.NullPointerException > at org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent.stop(SimpleDiscoveryAgent.java:96) > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)