java.awt.image.RasterFormatException: IntegerComponentRasters must have ComponentSampleModel or SinglePixelPackedSampleModel

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 sourceforge.net by Unknown author, 2 years ago
IntegerComponentRasters must have ComponentSampleModel or SinglePixelPackedSampleModel
via sourceforge.net by Unknown author, 1 year ago
IntegerComponentRasters must have ComponentSampleModel or SinglePixelPackedSampleModel
java.awt.image.RasterFormatException: IntegerComponentRasters must have ComponentSampleModel or SinglePixelPackedSampleModel
at sun.awt.image.ByteComponentRaster.(ByteComponentRaster.java:197)
at sun.awt.image.ByteInterleavedRaster.(ByteInterleavedRaster.java:192)
at sun.awt.image.ByteInterleavedRaster.(ByteInterleavedRaster.java:114)
at java.awt.image.Raster.createPackedRaster(Raster.java:484)
at com.sun.imageio.plugins.png.PNGImageReader.createRaster(PNGImageReader.java:870)
at com.sun.imageio.plugins.png.PNGImageReader.decodePass(PNGImageReader.java:991)
at com.sun.imageio.plugins.png.PNGImageReader.decodeImage(PNGImageReader.java:1189)
at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1281)
at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1553)
at javax.imageio.ImageIO.read(ImageIO.java:1439)
at javax.imageio.ImageIO.read(ImageIO.java:1391)

Users with the same issue

You are the first who have seen this exception.

Write tip

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