Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 80448 invoked from network); 1 Mar 2010 16:18:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 16:18:43 -0000 Received: (qmail 12284 invoked by uid 500); 1 Mar 2010 16:18:43 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 12221 invoked by uid 500); 1 Mar 2010 16:18:42 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 12214 invoked by uid 99); 1 Mar 2010 16:18:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 16:18:42 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 16:18:42 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 1D5C6234C495; Mon, 1 Mar 2010 16:18:21 +0000 (UTC) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 48833] NPE in X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stevel@apache.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20100301161822.1D5C6234C495@brutus.apache.org> Date: Mon, 1 Mar 2010 16:18:21 +0000 (UTC) https://issues.apache.org/bugzilla/show_bug.cgi?id=48833 --- Comment #1 from Steve Loughran 2010-03-01 16:18:21 UTC --- I thought this could be triggered by a null connection, added a check for that, but no. This is being triggered by something in Sun's code. If you search for NullPointerException sun.net.www.ParseUtil.toURI you can see that we are not the only group to encounter it. Propose: catch the exception, turn to a BuildException listing the URL at fault. This turns the error into (at normal levels) build.xml:176: Failed to parse http:localhost:8081/hadoop.site.xml which lets people debug the problem At -verbose you get Failed to parse http:localhost:8081/hadoop.site.xml at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:668) at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:581) at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:571) Caused by: java.lang.NullPointerException at sun.net.www.ParseUtil.toURI(ParseUtil.java:261) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:795) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726) at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:665) ... 2 more -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.