System Config.:
Mustang PIT b47
Symptom:
headline/4447135 failed in Mustang PIT b47.
The test feeds a MalformedURL to HttpURLConnection. The latest
promoted build throws MalformedURLException, but the PIT build throws IllegalArgumentException. In this case, a
MalformedURLException is more appropriate.
*URL*:
http://tatooine.sfbay.sun.com/index.html
HTTP/1.1\nProxy-Connection: keep-alive\nHost:
tatooine.sfbay.sun.com\n\nGET
http://sqeweb.sfbay.sun.com/sec/public_html/test.html
--------------------------------------------------------------------
java.lang.IllegalArgumentException: URI can't be null.
at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:111)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:720)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:650)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:947)
at ProxyBack.fetch(ProxyBack.java:100)
at ProxyBack.setRequestLine(ProxyBack.java:77)
at ProxyBack.main(ProxyBack.java:166)
java.lang.IllegalArgumentException: URI can't be null.
at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:111)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:720)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:650)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:947)
at ProxyBack.fetch(ProxyBack.java:100)
at ProxyBack.setRequestLine(ProxyBack.java:77)
at ProxyBack.main(ProxyBack.java:173)
How to reproduce
1. download attached files
2. compile the java code
3. run: java -Dhttp.proxyHost=scaweb1.sfbay.sun.com -Dhttp.proxyPort=8080 -Dhttp.keepAlive=true ProxyBack