Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A97E5192D3 for ; Wed, 13 Apr 2016 14:23:25 +0000 (UTC) Received: (qmail 13455 invoked by uid 500); 13 Apr 2016 14:23:25 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 13400 invoked by uid 500); 13 Apr 2016 14:23:25 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 13381 invoked by uid 99); 13 Apr 2016 14:23:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 14:23:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6ECF02C1F56 for ; Wed, 13 Apr 2016 14:23:25 +0000 (UTC) Date: Wed, 13 Apr 2016 14:23:25 +0000 (UTC) From: "Robert Nettleton (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-15861) NullPointerException in cluster deployment due to LogSearch PropertyProvider error 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/AMBARI-15861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Nettleton updated AMBARI-15861: -------------------------------------- Status: Patch Available (was: Open) > NullPointerException in cluster deployment due to LogSearch PropertyProvider error > ---------------------------------------------------------------------------------- > > Key: AMBARI-15861 > URL: https://issues.apache.org/jira/browse/AMBARI-15861 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Robert Nettleton > Assignee: Robert Nettleton > Priority: Critical > Fix For: 2.4.0 > > Attachments: AMBARI-15861.patch > > > The initial checkin of the LogSearch REST integration code for Ambari Server appears to have caused the following NullPointerException: > java.lang.NullPointerException > at org.apache.ambari.server.controller.logging.LoggingSearchPropertyProvider.populateResources(LoggingSearchPropertyProvider.java:98) > at org.apache.ambari.server.controller.internal.ClusterControllerImpl.populateResources(ClusterControllerImpl.java:155) > at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:483) > at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:437) > at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:217) > This issue is caused by the fact that the LoggingSearchPropertyProvider does not add a check for null when attempting to populate a resource with logging data. > This problem will occur in every cluster deployment where LogSearch isn't installed, which is the common case at this point. > I'm working on a fix for this, and will be submitting a patch soon. -- This message was sent by Atlassian JIRA (v6.3.4#6332)