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

ImageWriter is throwing java.lang.IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs
    • None
    • x86, sparc
    • solaris_2.5, solaris_8

      While writing an image to ImageOutStream, the ImageWriter is throwing the Exception java.lan.IllegalArgumentException: raster==null!. The same exception is thrown by the ImageIO.Write() method while writing an image to a destination object. This is occurring for the PNG Images.

      This failure is occuring on the Merlin beta build 43.

      How to reproduce bug?
      Run the attached code. This will show a frame with 2 buttons. Click on the "Writer" button. Two images will be loaded adjacent to each other. If any of the images is not rendering or if an exception is thrown in the prompt, then the bug is reproduced for ImageWriter.
      Then click on the button"Non-Writer". Two images will be loaded adjacently. If any of the images is not rendering or if an exception thrown, then the bug is reproduced for the ImageIO.Write() method.

            Unassigned Unassigned
            esubramasunw Elancheran Subramanian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: