java.lang.IllegalArgumentException

The specified ColorModel is incompatible with the image SampleModel.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web8

  • via Unknown by 843797,
  • via Stack Overflow by Daniel Trebbien
    ,
  • Stack trace

    • java.lang.IllegalArgumentException: The specified ColorModel is incompatible with the image SampleModel. at javax.media.jai.PlanarImage.setImageLayout(PlanarImage.java:493) at javax.media.jai.PlanarImage.<init>(PlanarImage.java:376) at javax.media.jai.RenderedImageAdapter.<init>(RenderedImageAdapter.java:128) at javax.media.jai.PlanarImage.wrapRenderedImage(PlanarImage.java:543) at javax.media.jai.NullOpImage.<init>(NullOpImage.java:108) at javax.media.jai.NullOpImage.<init>(NullOpImage.java:156) at TiffImageReader.loadImage(TiffImageReader.java:41) at TiffComponent.<init>(TiffComponent.java:39) at TiffViewer.<init>(TiffViewer.java:15) at ViewerApplication.main(ViewerApplication.java:23)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,