Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BC5A1812B for ; Tue, 11 Aug 2015 19:26:44 +0000 (UTC) Received: (qmail 18857 invoked by uid 500); 11 Aug 2015 19:25:46 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 18804 invoked by uid 500); 11 Aug 2015 19:25:46 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 18789 invoked by uid 99); 11 Aug 2015 19:25:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2015 19:25:45 +0000 Date: Tue, 11 Aug 2015 19:25:45 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ACCUMULO-3958) Monitor.fetchData should check for null instance name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Josh Elser created ACCUMULO-3958: ------------------------------------ Summary: Monitor.fetchData should check for null instance name Key: ACCUMULO-3958 URL: https://issues.apache.org/jira/browse/ACCUMULO-3958 Project: Accumulo Issue Type: Improvement Components: monitor Reporter: Josh Elser Assignee: Josh Elser Priority: Minor Fix For: 1.6.4, 1.7.1, 1.8.0 Had an odd situation where the monitor would throw an NPE constantly when I tried to view any page. It was throwing a NPE trying to accessed the cached instance name. It appears that {{HdfsZooInstance.getInstance().getInstanceName(}} may return null, but the monitor code is not written to account for that. The monitor should check for null values before setting the instance name into {{cachedInstanceName}}. When the instance name is null, it should reschedule the timertask to try to fetch a (non-null) instance name. -- This message was sent by Atlassian JIRA (v6.3.4#6332)