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

Https test-Image get test applet to retrieve an image file fails for java server

    XMLWordPrintable

Details

    • rc1
    • x86
    • other

    Description




      build - merlin beta3 b83
      OS - win 2000
      browsers - IE, NS4.7x, NS 6.1


      Steps to reproduce -

      1) - Install the jdk/jre for merlin beta3 build 83.
      2) - Make sure the .java.policy is removed.
      3) - Go to the https test cases at -

             http://sqesvr.sfbay.sun.com/deployment1/ws/doc/proc/JPI_https.html

      4) - execute the Full Look Test Case_6 (Image get test applet for testing HTTPS get to retrieve an image File) for java web server located at -

                 http://kittestsfbay.sun.com/https/tests/updates/myImage.html
                 https://kittestsfbay.sun.com/https/tests/updates/myImage.html

      5) - The image does not load and the following exception is thrown at the console -



      Java(TM) Plug-in: Version 1.4.0
      Using JRE version 1.4.0-beta3 Java HotSpot(TM) Client VM
      User home directory = D:\Documents and Settings\AdministratorProxy Configuration: Manual Configuration
           Proxy: http=scaweb1.sfbay.sun.com:8080,https=scaweb1.sfbay.sun.com:8080,ftp=scaweb1.sfbay.sun.com:8080
           Proxy Overrides: ----------------------------------------------------
      c: clear console window
      f: finalize objects on finalization queue
      g: garbage collect
      h: display this help message
      l: dump classloader list
      m: print memory usage
      o: trigger logging
      p: reload proxy configuration
      q: hide console
      r: reload policy configuration
      s: dump system properties
      t: dump thread list
      x: clear classloader cache
      0-5: set trace level to <n>
      ----------------------------------------------------
      Uncaught error fetching image:
      java.lang.NullPointerException
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
      at java.net.URLConnection.getContentType(Unknown Source)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentType(DashoA6275)
      at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
      at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
      at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
      at sun.awt.image.ImageFetcher.run(Unknown Source)

      ###@###.### 2001-11-14
      This bug is still seen in win2000/JRE1.4-rc-b85/NS6.1

      Attachments

        Activity

          People

            ywangsunw Yingxian Wang (Inactive)
            anprabha Anjana Prabhakar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: