java.lang.IllegalArgumentException: The specified ColorModel is incompatible with the image SampleModel.

Oracle Community | 843797 | 2 decades ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JAI 1.1.1 under JDK 1.2.2

    Oracle Community | 2 decades ago | 843797
    java.lang.IllegalArgumentException: The specified ColorModel is incompatible with the image SampleModel.
  2. 0

    unable to read tiff with lzw compression for jai codec api

    Stack Overflow | 1 year ago | sriram
    java.lang.IllegalArgumentException: The input argument(s) may not be null.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The specified ColorModel is incompatible with the image SampleModel.

      at javax.media.jai.PlanarImage.setImageLayout()
    2. javax.media.jai
      NullOpImage.<init>
      1. javax.media.jai.PlanarImage.setImageLayout(PlanarImage.java:493)
      2. javax.media.jai.PlanarImage.<init>(PlanarImage.java:376)
      3. javax.media.jai.RenderedImageAdapter.<init>(RenderedImageAdapter.java:128)
      4. javax.media.jai.PlanarImage.wrapRenderedImage(PlanarImage.java:543)
      5. javax.media.jai.NullOpImage.<init>(NullOpImage.java:108)
      6. javax.media.jai.NullOpImage.<init>(NullOpImage.java:156)
      6 frames
    3. Unknown
      ViewerApplication.main
      1. TiffImageReader.loadImage(TiffImageReader.java:41)
      2. TiffComponent.<init>(TiffComponent.java:39)
      3. TiffViewer.<init>(TiffViewer.java:15)
      4. ViewerApplication.main(ViewerApplication.java:23)
      4 frames