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

jre 1.1.6 reports exception or hangs in ImageFetcher thread when loading a gif f

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 1.1.6
    • tools
    • None
    • jar
    • x86
    • generic

      Machine: NT (~48Meg)
      JDK: 1.1.6

      Problem:
           Trying to load a gif from a jar file (using Toolkit.getImage(URK url)).

           problem happens randomly (within 1 out of 10 launches). Same code runs fine on Solaris. Exception is reported on the ImageFetcher thread.

      Exception:
      java.lang.NullPointerException:
              at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:82)
              at sun.net.www.protocol.systemresource.SystemResourceManager.getLocalResourceStream(SystemResourceManager.java:114)
              at sun.net.www.protocol.systemresource.SystemResourceConnection.getInputStream(SystemResourceConnection.java:93)
              at sun.net.www.URLConnection.getContentType(URLConnection.java:126)
              at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:98)
              at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:259)
              at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:151)
              at sun.awt.image.ImageFetcher.run(ImageFetcher.java:127)

            zlisunw Zhenghua Li (Inactive)
            klooney Kevin Looney (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: