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

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 Icesoft by yury.shulhat, 1 year ago
org.icepdf.core.pobjects.Reference cannot be cast to java.util.HashMap
java.lang.ClassCastException: org.icepdf.core.pobjects.Reference cannot be cast to java.util.HashMap
at org.icepdf.core.pobjects.graphics.PColorSpace.getColorSpace(PColorSpace.java:87)
at org.icepdf.core.pobjects.Resources.getColorSpace(Resources.java:92)
at org.icepdf.core.util.content.AbstractContentParser.consume_cs(AbstractContentParser.java:239)
at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:363)
at org.icepdf.core.pobjects.Document.getPageImage(Document.java:1086)
at undefined.Text.saveImages(Text.java:290)
at undefined.Text.saveImages(Text.java:278)
at undefined.Text.main(Text.java:57)

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.