java.lang.ClassCastException: com.sun.media.imageio.stream.RawImageInputStream cannot be cast to com.github.jaiimageio.stream.RawImageInputStream

Stack Overflow | Browniez | 8 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

    Java rawImageInputStream cannot be cast -imageIO

    Stack Overflow | 8 months ago | Browniez
    java.lang.ClassCastException: com.sun.media.imageio.stream.RawImageInputStream cannot be cast to com.github.jaiimageio.stream.RawImageInputStream

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.sun.media.imageio.stream.RawImageInputStream cannot be cast to com.github.jaiimageio.stream.RawImageInputStream

      at com.github.jaiimageio.impl.plugins.raw.RawImageReader.setInput()
    2. com.github.jaiimageio
      RawImageReader.setInput
      1. com.github.jaiimageio.impl.plugins.raw.RawImageReader.setInput(RawImageReader.java:106)
      1 frame
    3. Java RT
      ImageReader.setInput
      1. javax.imageio.ImageReader.setInput(ImageReader.java:380)
      1 frame
    4. org.dcm4che2.imageioimpl
      DicomImageReader.read
      1. org.dcm4che2.imageioimpl.plugins.dcm.DicomImageReader.initRawImageReader(DicomImageReader.java:371)
      2. org.dcm4che2.imageioimpl.plugins.dcm.DicomImageReader.initImageReader(DicomImageReader.java:339)
      3. org.dcm4che2.imageioimpl.plugins.dcm.DicomImageReader.read(DicomImageReader.java:530)
      3 frames