java.lang.ClassCastException: [I

java.com | 7 months 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

    Bug ID: JDK-4937376 class cast exception in fetching images

    java.com | 7 months ago
    java.lang.ClassCastException: [I

    Root Cause Analysis

    1. java.lang.ClassCastException

      [I

      at java.awt.image.ColorModel.getAlpha()
    2. Java RT
      RGBImageFilter.setPixels
      1. java.awt.image.ColorModel.getAlpha(ColorModel.java:814)
      2. java.awt.image.ColorModel.getRGB(ColorModel.java:859)
      3. sun.awt.image.ImageRepresentation.convertToRGB(ImageRepresentation.java:295)
      4. sun.awt.image.ImageRepresentation.setPixels(ImageRepresentation.java:532)
      5. java.awt.image.RGBImageFilter.filterRGBPixels(RGBImageFilter.java:183)
      6. java.awt.image.RGBImageFilter.setPixels(RGBImageFilter.java:217)
      6 frames
    3. Unknown
      ButtonFilter.setPixels
      1. ButtonFilter.setPixels(ButtonFilter.java:198)
      1 frame
    4. Java RT
      ImageFetcher.run
      1. java.awt.image.CropImageFilter.setPixels(CropImageFilter.java:119)
      2. sun.awt.image.OffScreenImageSource.sendPixels(OffScreenImageSource.java:73)
      3. sun.awt.image.OffScreenImageSource.produce(OffScreenImageSource.java:162)
      4. sun.awt.image.OffScreenImageSource.addConsumer(OffScreenImageSource.java:37)
      5. sun.awt.image.OffScreenImageSource.startProduction(OffScreenImageSource.java:51)
      6. sun.awt.image.ImageRepresentation.replay(ImageRepresentation.java:897)
      7. sun.awt.image.InputStreamImageSource.updateFromStore(InputStreamImageSource.java:293)
      8. sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:237)
      9. sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
      10. sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
      10 frames