java.lang.ClassCastException: java.util.ArrayList 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 nam.ht, 1 year ago
java.util.ArrayList cannot be cast to java.util.HashMap
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.HashMap
at org.icepdf.core.util.Parser.getObject(Parser.java:187)
at org.icepdf.core.util.LazyObjectLoader.loadObject(LazyObjectLoader.java:73)
at org.icepdf.core.util.Library.getObject(Library.java:156)
at org.icepdf.core.util.Library.getObject(Library.java:206)
at org.icepdf.core.pobjects.fonts.FontDescriptor.init(FontDescriptor.java:294)
at org.icepdf.core.pobjects.fonts.ofont.Font.init(Font.java:326)
at org.icepdf.core.pobjects.fonts.ofont.Font.init(Font.java:372)
at org.icepdf.core.pobjects.Resources.getFont(Resources.java:150)
at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:747)
at org.icepdf.core.util.content.OContentParser.parseText(OContentParser.java:795)
at org.icepdf.core.util.content.OContentParser.parse(OContentParser.java:180)
at org.icepdf.core.pobjects.Page.init(Page.java:370)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1065)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

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.