java.lang.ClassCastException: org.icepdf.core.pobjects.Reference cannot be cast to java.util.HashMap

Icesoft | yury.shulhat | 4 years 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

    Pages are rendered in white sheets

    Icesoft | 4 years ago | yury.shulhat
    java.lang.ClassCastException: org.icepdf.core.pobjects.Reference cannot be cast to java.util.HashMap

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.icepdf.core.pobjects.Reference cannot be cast to java.util.HashMap

      at org.icepdf.core.pobjects.graphics.PColorSpace.getColorSpace()
    2. org.icepdf.core
      Document.getPageImage
      1. org.icepdf.core.pobjects.graphics.PColorSpace.getColorSpace(PColorSpace.java:87)
      2. org.icepdf.core.pobjects.Resources.getColorSpace(Resources.java:92)
      3. org.icepdf.core.util.content.AbstractContentParser.consume_cs(AbstractContentParser.java:239)
      4. org.icepdf.core.util.content.NContentParser.parseText(Unknown Source)
      5. org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      6. org.icepdf.core.pobjects.Page.init(Page.java:363)
      7. org.icepdf.core.pobjects.Document.getPageImage(Document.java:1086)
      7 frames
    3. Unknown
      Text.main
      1. Text.saveImages(Text.java:290)
      2. Text.saveImages(Text.java:278)
      3. Text.main(Text.java:57)
      3 frames