This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 163555 - NullPointerException at sun.net.www.ParseUtil.toURI
Summary: NullPointerException at sun.net.www.ParseUtil.toURI
Status: VERIFIED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Hudson (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-24 09:34 UTC by Ivan Sidorkin
Modified: 2009-04-27 13:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 150047


Attachments
stacktrace (846 bytes, text/plain)
2009-04-24 09:34 UTC, Ivan Sidorkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2009-04-24 09:34:01 UTC
Build: NetBeans IDE Dev (Build 200904240201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.NullPointerException
        at sun.net.www.ParseUtil.toURI(ParseUtil.java:261)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:787)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718)
        at org.netbeans.modules.hudson.api.ConnectionBuilder.doConnection(ConnectionBuilder.java:270)
        at org.netbeans.modules.hudson.api.ConnectionBuilder.connection(ConnectionBuilder.java:212)
        at org.netbeans.modules.hudson.api.ConnectionBuilder.httpConnection(ConnectionBuilder.java:330)
Comment 1 Ivan Sidorkin 2009-04-24 09:34:05 UTC
Created attachment 80825 [details]
stacktrace
Comment 2 Jesse Glick 2009-04-24 15:06:11 UTC
I need to know what preceded this in the log. See logging instructions in

http://wiki.netbeans.org/HudsonInNetBeans

And are you using a proxy?
Comment 3 Ivan Sidorkin 2009-04-24 15:48:07 UTC
- open Add Hudson Instance dialog
- enter some name
- remove one / in URL, so your URL looks like: http:/
- click Add button

NPE
Comment 4 Jesse Glick 2009-04-24 16:18:12 UTC
"well don't do that then"

Reproducible on JDK 6. On JDK 5 or JDK 7 a different exception is thrown, already reported in Bugster (6797318) and
caught gracefully.

Can just rewrap all exceptions into IOException so they are treated uniformly, I guess: cdev #017621adb787
Comment 5 Quality Engineering 2009-04-25 07:32:11 UTC
Integrated into 'main-golden', will be available in build *200904250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/017621adb787
User: Jesse Glick <jglick@netbeans.org>
Log: #163555: more robust handling of edge cases in URL handling which turn up JRE bugs.
Comment 6 Ivan Sidorkin 2009-04-27 13:56:28 UTC
verified