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 740D39506 for ; Tue, 6 Dec 2011 15:44:03 +0000 (UTC) Received: (qmail 47867 invoked by uid 500); 6 Dec 2011 15:44:03 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 47832 invoked by uid 500); 6 Dec 2011 15:44:03 -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 47823 invoked by uid 99); 6 Dec 2011 15:44:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 15:44:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Tue, 06 Dec 2011 15:44: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 D8FCE103BC3 for ; Tue, 6 Dec 2011 15:43:39 +0000 (UTC) Date: Tue, 6 Dec 2011 15:43:39 +0000 (UTC) From: "Stan Lewis (Updated) (JIRA)" To: dev@activemq.apache.org Message-ID: <678915612.45844.1323186219890.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1076406321.45794.1323184660492.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQ-3622) NPE in LastImageSubscriptionRecoveryPolicy 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-3622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stan Lewis updated AMQ-3622: ---------------------------- Attachment: 0001-Avoid-NPE.patch Here's the patch! > NPE in LastImageSubscriptionRecoveryPolicy > ------------------------------------------ > > Key: AMQ-3622 > URL: https://issues.apache.org/jira/browse/AMQ-3622 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.5.1 > Reporter: Stan Lewis > Attachments: 0001-Avoid-NPE.patch > > > Start up a subscriber when no messages are available and this NPE will eventually get logged: > 2011-12-02 15:01:00,588 | WARN | Failed to browse Topic: xxx | org.apache.activemq.broker.region.Topic | ActiveMQ Broker[xxx] Scheduler > java.lang.NullPointerException > at org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy.browse(LastImageSubscriptionRecoveryPolicy.java:63) > at org.apache.activemq.broker.region.Topic.browse(Topic.java:564) > at org.apache.activemq.broker.region.Topic$6.run(Topic.java:659) > at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > repeatedly every 30 seconds or so until a message is sent to the topic. -- 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