ICEpdf
  1. ICEpdf
  2. PDF-605

pobjects.Stream cannot be cast to java.util.HashMap

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.2
    • Fix Version/s: 5.0.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      JAI
    • Salesforce Case Reference:

      Description

      The attached PDF does not render and throws the following exception:

      Jun 18, 2013 2:11:07 PM org.icepdf.core.util.content.NContentParser parse
      WARNING: Error parsing content stream.
      java.lang.ClassCastException: org.icepdf.core.pobjects.Stream cannot be cast to
      java.util.HashMap
      at org.icepdf.core.pobjects.Resources.getFont(Resources.java:137)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractConten
      tParser.java:722)
      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:367)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageVie
      wComponentImpl.java:1008)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
      va:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
      18)
      at java.lang.Thread.run(Thread.java:680)

        Activity

        Hide
        Patrick Corless added a comment -

        Fixed a regression related to PDF-461 and xref parsing for filled entries. Need a round of QA but fix look promising.

        Show
        Patrick Corless added a comment - Fixed a regression related to PDF-461 and xref parsing for filled entries. Need a round of QA but fix look promising.
        Hide
        Patrick Corless added a comment -

        Checked in fix on the 5.0.1 branch and the trunk.

        Show
        Patrick Corless added a comment - Checked in fix on the 5.0.1 branch and the trunk.
        Hide
        Patrick Corless added a comment -

        Verified against final bundle.

        Show
        Patrick Corless added a comment - Verified against final bundle.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: