https://issues.apache.org/bugzilla/show_bug.cgi?id=48833
--- Comment #1 from Steve Loughran <[email protected]> 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.
