java.lang.ClassCastException: [I

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 freecol by *anonymous
, 1 year ago
\[I cannot be cast to \[B
via Stack Overflow by koldewb
, 2 years ago
[I cannot be cast to [B
via Oracle Community by 807577, 1 year ago
via Oracle Community by 843797, 1 year ago
java.lang.ClassCastException: [I
at java.awt.image.ColorModel.getAlpha(ColorModel.java:814)
at java.awt.image.ColorModel.getRGB(ColorModel.java:859)
at sun.awt.image.ImageRepresentation.convertToRGB(ImageRepresentation.java:295)
at sun.awt.image.ImageRepresentation.setPixels(ImageRepresentation.java:532)
at java.awt.image.RGBImageFilter.filterRGBPixels(RGBImageFilter.java:183)
at java.awt.image.RGBImageFilter.setPixels(RGBImageFilter.java:217)
at undefined.ButtonFilter.setPixels(ButtonFilter.java:198)
at java.awt.image.CropImageFilter.setPixels(CropImageFilter.java:119)
at sun.awt.image.OffScreenImageSource.sendPixels(OffScreenImageSource.java:73)
at sun.awt.image.OffScreenImageSource.produce(OffScreenImageSource.java:162)
at sun.awt.image.OffScreenImageSource.addConsumer(OffScreenImageSource.java:37)
at sun.awt.image.OffScreenImageSource.startProduction(OffScreenImageSource.java:51)
at sun.awt.image.ImageRepresentation.replay(ImageRepresentation.java:897)
at sun.awt.image.InputStreamImageSource.updateFromStore(InputStreamImageSource.java:293)
at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:237)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

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.