javax.imageio.IIOException: [I cannot be cast to [B

jmrtd | *anonymous | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Problem in JJ2000 image writer

    jmrtd | 4 years ago | *anonymous
    javax.imageio.IIOException: [I cannot be cast to [B
  2. 0

    PImage base64 encode and decode

    Stack Overflow | 3 years ago | user3597285
    java.lang.ClassCastException: [I cannot be cast to [B

    Root Cause Analysis

    1. java.lang.ClassCastException

      [I cannot be cast to [B

      at sun.awt.image.ByteInterleavedRaster.getDataElements()
    2. Java RT
      ByteInterleavedRaster.getDataElements
      1. sun.awt.image.ByteInterleavedRaster.getDataElements(ByteInterleavedRaster.java:364)
      1 frame
    3. org.jmrtd.imageio
      JJ2000ImageWriter.write
      1. org.jmrtd.imageio.JJ2000ImageWriter.write(JJ2000ImageWriter.java:79)
      1 frame
    4. Java RT
      ImageWriter.write
      1. javax.imageio.ImageWriter.write(ImageWriter.java:615)
      1 frame
    5. org.jmrtd.jj2000
      ImageTest.main
      1. org.jmrtd.jj2000.test.ImageTest.<init>(ImageTest.java:49)
      2. org.jmrtd.jj2000.test.ImageTest.main(ImageTest.java:91)
      2 frames