java.lang.ClassCastException: org.icepdf.core.pobjects.functions.postscript.Expression cannot be cast to java.lang.Float

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

java.lang.ClassCastException: org.icepdf.core.pobjects.functions.postscript.Expression cannot be cast to java.lang.Float
at org.icepdf.core.pobjects.functions.postscript.OperatorFactory$18.eval(OperatorFactory.java:328)
at org.icepdf.core.pobjects.functions.postscript.Lexer.operandStart(Lexer.java:225)
at org.icepdf.core.pobjects.functions.postscript.Lexer.parse(Lexer.java:112)
at org.icepdf.core.pobjects.functions.Function_4.calculate(Function_4.java:95)
at org.icepdf.core.pobjects.graphics.Separation.getColor(Separation.java:179)
at org.icepdf.core.util.content.AbstractContentParser.consume_sc(AbstractContentParser.java:414)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
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(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

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.