ICEpdf
  1. ICEpdf
  2. PDF-786

ClassCastException: Expression cannot be cast to java.lang.Float

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6_P01, 5.0.7
    • Fix Version/s: 5.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      When rendering the provided PDF file, the following error is thrown and the PDF fails to render:

      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)

        People

        • Assignee:
          Patrick Corless
          Reporter:
          Arran Mccullough
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: