ICEpdf
  1. ICEpdf
  2. PDF-651

EmptyStackException Warning logged when rendering PDF

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.4
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All
    • Salesforce Case Reference:

      Description

      The following error stack trace is logged when rendering the provided PDF file, it does not seem to effect the rendering but can fill up production logs:

      java.util.EmptyStackException
      at java.util.Stack.peek(Unknown Source)
      at java.util.Stack.pop(Unknown Source)
      at org.icepdf.core.util.content.AbstractContentParser.consume_w(AbstractContentParser.java:696)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      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

        Hide
        Patrick Corless added a comment -

        The file in question has a content stream that contains some garbage characters at the end of it. The content parser reports the error as does acrobat when loading the file.

        The error doesn't seem to effect the rendered output as it comes at the end of the content stream.

        Show
        Patrick Corless added a comment - The file in question has a content stream that contains some garbage characters at the end of it. The content parser reports the error as does acrobat when loading the file. The error doesn't seem to effect the rendered output as it comes at the end of the content stream.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: