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 ECA649634 for ; Mon, 20 Feb 2012 21:45:55 +0000 (UTC) Received: (qmail 7726 invoked by uid 500); 20 Feb 2012 21:45:55 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 7682 invoked by uid 500); 20 Feb 2012 21:45:55 -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 7668 invoked by uid 99); 20 Feb 2012 21:45:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 21:45:55 +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; Mon, 20 Feb 2012 21:45:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 607092B0A8C for ; Mon, 20 Feb 2012 21:45:34 +0000 (UTC) Date: Mon, 20 Feb 2012 21:45:34 +0000 (UTC) From: "Timothy Bish (Created) (JIRA)" To: dev@activemq.apache.org Message-ID: <296613270.3469.1329774334396.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (AMQ-3731) Suspicious NPE in log when network bridge cannot be established and loggingBrokerPlugin configured MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Suspicious NPE in log when network bridge cannot be established and loggingBrokerPlugin configured -------------------------------------------------------------------------------------------------- Key: AMQ-3731 URL: https://issues.apache.org/jira/browse/AMQ-3731 Project: ActiveMQ Issue Type: Bug Components: Connector, Transport Affects Versions: 5.5.1 Reporter: Timothy Bish Assignee: Timothy Bish Priority: Trivial Fix For: 5.6.0 WIth the following broker plugins enabled: {code} {code} and network bridge down (only one broker up), the following error appears in the active broker log: {noformat} WARN - DiscoveryNetworkConnector - Could not start network bridge between: vm://broker1?async=false&network=true and: tcp://0.0.0.0:61627?soWriteTimeout=15000&soTimeout=15000&wireFormat.maxInactivityDuration=30000 due to: java.net.ConnectException: Connection refused WARN - DemandForwardingBridgeSupport - Caught an exception processing local command java.lang.NullPointerException at org.apache.activemq.broker.util.LoggingBrokerPlugin.removeBroker(LoggingBrokerPlugin.java:406) at org.apache.activemq.broker.MutableBrokerFilter.removeBroker(MutableBrokerFilter.java:195) at org.apache.activemq.broker.MutableBrokerFilter.removeBroker(MutableBrokerFilter.java:195) at org.apache.activemq.network.DemandForwardingBridgeSupport.stop(DemandForwardingBridgeSupport.java:339) at org.apache.activemq.network.DemandForwardingBridgeSupport.serviceLocalCommand(DemandForwardingBridgeSupport.java:718) at org.apache.activemq.network.DemandForwardingBridgeSupport$1.onCommand(DemandForwardingBridgeSupport.java:130) at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116) at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50) at org.apache.activemq.transport.vm.VMTransport.stop(VMTransport.java:159) at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65) at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65) at org.apache.activemq.transport.ResponseCorrelator.stop(ResponseCorrelator.java:132) at org.apache.activemq.broker.TransportConnection.doStop(TransportConnection.java:991) at org.apache.activemq.broker.TransportConnection$4.run(TransportConnection.java:954) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) {noformat} While this doesn't cause anything to break its not helpful to see these logs. The issue is that the DemandForwardingBridgeSupport stop method always calls removeBroker on the remote even if it never connected and the remote broker info is null. We should check this condition first before trying to remove something we never connected to. -- 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