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 7518019923 for ; Thu, 24 Mar 2016 16:46:26 +0000 (UTC) Received: (qmail 22038 invoked by uid 500); 24 Mar 2016 16:46:26 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 21990 invoked by uid 500); 24 Mar 2016 16:46:26 -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 21965 invoked by uid 99); 24 Mar 2016 16:46:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2016 16:46:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 937042C1F6B for ; Thu, 24 Mar 2016 16:46:25 +0000 (UTC) Date: Thu, 24 Mar 2016 16:46:25 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9363) AuthenticatedURL will NPE if server closes connection 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-9363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15210530#comment-15210530 ] Steve Loughran commented on HADOOP-9363: ---------------------------------------- Looking at this. So the root cause is the back end isn't sending back a valid response; the client is NPEing. I'm looking at the code in the JDK to see how the NPE could be triggered, but it's not immediately obvious. I don't see any diffs between Java 7u45 and Java 8, so have to assume that if there is a problem, it's still there. What about catching any RuntimeException raised as this point, rethrow it as an IOE, and including the URL at fault in the message? > AuthenticatedURL will NPE if server closes connection > ----------------------------------------------------- > > Key: HADOOP-9363 > URL: https://issues.apache.org/jira/browse/HADOOP-9363 > Project: Hadoop Common > Issue Type: Bug > Components: security > Affects Versions: 0.23.0, 2.0.0-alpha, 3.0.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Priority: Critical > > A NPE occurs if the server unexpectedly closes the connection for an {{AuthenticatedURL}} w/o sending a response. -- This message was sent by Atlassian JIRA (v6.3.4#6332)