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

REGRESSION: JCK1.5-runtime api/java_net/... #getResponseCode fails

XMLWordPrintable

    • x86
    • linux, solaris_8, windows_xp



      Name: mmR10223 Date: 08/28/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b16 (passes using JDK1.5.0-b15, JDK1.4.2-b28 )
      JCK : JCK1.5-runtime (b02)
      Platform[s] : all
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test[s]:
              api/java_net/HttpURLConnection/index.html#getResponseCode [getResponseCodeIOException]
              api/java_net/HttpURLConnection/index.html#getResponseMessage [getResponseMessageIOException]


      Test source location:
      =====================
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/java_net/HttpURLConnection/getResponseCodeTests.java
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/java_net/HttpURLConnection/getResponseMessageTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b16/jck15/win32/winXP_smp_client_esa_linux-21/workDir/api/java_net/HttpURLConnection/index_getResponseMessage.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b16/jck15/win32/winXP_smp_client_esa_linux-21/workDir/api/java_net/HttpURLConnection/index_getResponseCode.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
       
      --- script start ---
      #!/bin/bash

      JCK="h:/java/jck1.5/JCK-runtime-15"
      JDK="h:/java/jdk1.5.0/win32"
      CLASSPATH="$JCK/classes;$JCK/lib/javatest.jar"
       
      $JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.java.net.HttpURLConnection.getResponseCodeTests -exclude getResponseCodeNotValidHTTP -network.httpURL http://linux-15/index.html -network.jckHTTPProxyHost NONE -network.jckHTTPProxyPort NONE -TestCaseID -TestCaseID getResponseCodeIOException result

      --- script end ---

      Test output:
      ============
      java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:704)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1624)
      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:281)
      at javasoft.sqe.tests.api.java.net.HttpURLConnection.getResponseCodeTests.getResponseCodeIOException(getResponseCodeTests.java:242)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
      at javasoft.sqe.tests.api.java.net.HttpURLConnection.getResponseCodeTests.main(getResponseCodeTests.java:77)
      Caused by: java.lang.IllegalArgumentException: protocol = http host = null
      at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:42)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:612)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:555)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:732)
      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
      ... 9 more
      getResponseCodeIOException: Failed. Test case throws exception: java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null
      STATUS:Failed.test cases: 3; passed: 2; failed: 1; first test case failure: getResponseCodeIOException


      Specific machine info:
      ======================
      Hostname: linux-1
      OS: Solaris 8 (sparc) (CDE)
      Hostname: linux-21
      OS: Windows XP Home
      Hostname: linux-22
      OS: RedHat Linux 9.0 (GNOME)



      ======================================================================

            jccollet Jean-Christophe Collet (Inactive)
            mmvsunw Mmv Mmv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: