Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6306744

headline/4447135 failed in Mustang PIT b47

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • b47
    • 6
    • generic, x86
    • generic, linux_redhat_3.0

      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

            yuwangsunw Yujiang Wang (Inactive)
            mhuangsunw Melinda Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: