Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 E6E6018DC1 for ; Tue, 27 Oct 2015 17:15:29 +0000 (UTC) Received: (qmail 74073 invoked by uid 500); 27 Oct 2015 17:15:28 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 73918 invoked by uid 500); 27 Oct 2015 17:15:28 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 73577 invoked by uid 99); 27 Oct 2015 17:15:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2015 17:15:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0A4E12C1F5A for ; Tue, 27 Oct 2015 17:15:28 +0000 (UTC) Date: Tue, 27 Oct 2015 17:15:28 +0000 (UTC) From: "zhihai xu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12178) NPE during handling of SASL setup if problem with SASL resolver class 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/HADOOP-12178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14976762#comment-14976762 ] zhihai xu commented on HADOOP-12178: ------------------------------------ Committed it to trunk and branch-2, thanks [~steve_l] for the contribution! thanks [~hitliuyi] for the review! > NPE during handling of SASL setup if problem with SASL resolver class > --------------------------------------------------------------------- > > Key: HADOOP-12178 > URL: https://issues.apache.org/jira/browse/HADOOP-12178 > Project: Hadoop Common > Issue Type: Bug > Components: ipc > Affects Versions: 2.7.1 > Reporter: Steve Loughran > Assignee: Steve Loughran > Priority: Minor > Attachments: HADOOP-12178-001.patch > > > If there's any problem in the constructor of {{SaslRpcClient}}, then IPC Client throws an NPE rather than forwarding the stack trace. This is because the exception handler assumes that {{saslRpcClient}} is not null, that the exception is related to the SASL setup itself. > The exception handler needs to check for {{saslRpcClient}} being null, and if so, rethrow the exception -- This message was sent by Atlassian JIRA (v6.3.4#6332)