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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 843797, 1 year ago
The specified ColorModel is incompatible with the image SampleModel.
via coderanch.com by Unknown author, 2 years ago
The specified ColorModel is incompatible with the image SampleModel.
via Stack Overflow by Daniel Trebbien
, 2 years ago
The specified ColorModel is incompatible with the image SampleModel.
via compgroups.net by Unknown author, 2 years ago
The specified ColorModel is incompatible with the image SampleModel.
via Google Groups by Philipp, 2 years ago
The specified ColorModel is incompatible with the image SampleModel.
via thecodingforums.com by Unknown author, 2 years ago
The specified ColorModel is incompatible with the image SampleModel.
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.(PlanarImage.java:376)
at javax.media.jai.RenderedImageAdapter.(RenderedImageAdapter.java:128)
at javax.media.jai.PlanarImage.wrapRenderedImage(PlanarImage.java:543)
at javax.media.jai.NullOpImage.(NullOpImage.java:108)
at javax.media.jai.NullOpImage.(NullOpImage.java:156)
at undefined.TiffImageReader.loadImage(TiffImageReader.java:41)
at undefined.TiffComponent.(TiffComponent.java:39)
at undefined.TiffViewer.(TiffViewer.java:15)
at undefined.ViewerApplication.main(ViewerApplication.java:23)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.