ICEpdf
  1. ICEpdf
  2. PDF-663

ClassCastException in PColorSpace

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.4
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      JRE 1.7.0_15, Windows 7

      Description

      The attached PDF file is shown as blank in the viewer and throws an exception:

      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:97)
        at org.icepdf.core.pobjects.Resources.getColorSpace(Resources.java:92)
        at org.icepdf.core.util.content.AbstractContentParser.consume_cs(AbstractContentParser.java:241)
        at org.icepdf.core.util.content.OContentParser.parseText(OContentParser.java:921)
        at org.icepdf.core.util.content.OContentParser.parse(OContentParser.java:179)
        at org.icepdf.core.pobjects.Page.init(Page.java:368)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1039)
        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:722)

        Activity

        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Fix Version/s 5.0.4 [ 11072 ]
        Alex Alishevskikh made changes -
        Field Original Value New Value
        Attachment Employee Feedback and the Board.pdf [ 16483 ]
        Alex Alishevskikh created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: