ICEpdf
  1. ICEpdf
  2. PDF-978

ClassCastException: String cannot be cast to org.icepdf.core.pobjects.Reference

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.1.1
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      Description

      A set of PDF files have been provided by a customer. When rendering the 3rd (last) page of the PDF files the following exception is thrown:

      WARNING: Error initiating page: 2
      java.lang.ClassCastException: java.lang.String cannot be cast to org.icepdf.core.pobjects.Reference
      at org.icepdf.core.pobjects.Page.initPageContents(Page.java:230)
      at org.icepdf.core.pobjects.Page.init(Page.java:363)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1169)
      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)

        Activity

        Hide
        Patrick Corless added a comment -

        The page's content array has an extra entry with a value of the string "null". This is technically against the specification but none the less easy to adjust for.

        Check in a fix for both the 6.1 branch and trunk.

        Show
        Patrick Corless added a comment - The page's content array has an extra entry with a value of the string "null". This is technically against the specification but none the less easy to adjust for. Check in a fix for both the 6.1 branch and trunk.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: