java.util.EmptyStackException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When rendering the provided PDF file the following exceptions are thrown and the content of the PDF is rendered blank: WARNING: Fatal error parsing PDF file stream. java.util.EmptyStackException at java.util.Stack.peek(Stack.java:102) at java.util.Stack.pop(Stack.java:84) at org.icepdf.core.util.Parser.getObject(Parser.java:144) at org.icepdf.core.util.LazyObjectLoader.loadObject(LazyObjectLoader.java:73) at org.icepdf.core.util.Library.getObject(Library.java:166) at org.icepdf.core.pobjects.PageTree.getPageOrPagesPotentiallyNotInitedFromReferenceAt(PageTree.java:282) at org.icepdf.core.pobjects.PageTree.getPagePotentiallyNotInitedByRecursiveIndex(PageTree.java:301) at org.icepdf.core.pobjects.PageTree.getPage(PageTree.java:381) at org.icepdf.ri.common.views.PageViewComponentImpl.getPage(PageViewComponentImpl.java:336) at org.icepdf.ri.common.views.PageViewComponentImpl$DirtyTimerAction.actionPerformed(PageViewComponentImpl.java:1265) at javax.swing.Timer.fireActionPerformed(Timer.java:312) at javax.swing.Timer$DoPostEvent.run(Timer.java:244) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    via by Arran Mccullough,
  • Eclipse no longer starts
    via Stack Overflow by Colin Gillespie
    ,
  • GitHub comment 75#50027408
    via GitHub by BoykoAlex
    ,
  • Having trouble evaluating infix expressions
    via Stack Overflow by Jacob
    ,
  • When rendering the provided PDF file, the following error stack traces are thrown: Mar 29, 2016 9:36:20 AM org.icepdf.core.util.content.NContentParser parse FINE: Parsing page content streams: 1 Mar 29, 2016 9:36:20 AM org.icepdf.core.util.content.NContentParser parse FINER: Content = .~øC ç1 Mar 29, 2016 9:36:20 AM org.icepdf.core.util.content.NContentParser parse WARNING: Error parsing content stream. java.lang.ClassCastException: java.lang.Float cannot be cast to org.icepdf.core.pobjects.Name at org.icepdf.core.util.content.AbstractContentParser.consume_CS(AbstractContentParser.java:244) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.graphics.TilingPattern.init(TilingPattern.java:296) at org.icepdf.core.util.content.AbstractContentParser.commonFill(AbstractContentParser.java:1840) at org.icepdf.core.util.content.AbstractContentParser.consume_f_star(AbstractContentParser.java:1180) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.Page.init(Page.java:403) 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) Mar 29, 2016 9:36:20 AM org.icepdf.core.util.content.NContentParser parse FINE: Parsing page content streams: 1 Mar 29, 2016 9:36:20 AM org.icepdf.core.util.content.NContentParser parse FINER: Content = kÛ÷ßwV° Mar 29, 2016 9:36:20 AM org.icepdf.core.util.content.NContentParser parse WARNING: Error parsing content stream. java.util.EmptyStackException at java.util.Stack.peek(Stack.java:102) at java.util.Stack.pop(Stack.java:84) at org.icepdf.core.util.content.AbstractContentParser.consume_k(AbstractContentParser.java:230) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.graphics.TilingPattern.init(TilingPattern.java:296) at org.icepdf.core.util.content.AbstractContentParser.commonFill(AbstractContentParser.java:1840) at org.icepdf.core.util.content.AbstractContentParser.consume_f_star(AbstractContentParser.java:1180) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.Page.init(Page.java:403) 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) The customer is also reporting that these exceptions result in an endless loop.
    via by Arran Mccullough,
    • java.util.EmptyStackException at java.util.Stack.peek(Stack.java:102) at java.util.Stack.pop(Stack.java:84) at org.icepdf.core.util.Parser.getObject(Parser.java:144) at org.icepdf.core.util.LazyObjectLoader.loadObject(LazyObjectLoader.java:73) at org.icepdf.core.util.Library.getObject(Library.java:166) at org.icepdf.core.pobjects.PageTree.getPageOrPagesPotentiallyNotInitedFromReferenceAt(PageTree.java:282) at org.icepdf.core.pobjects.PageTree.getPagePotentiallyNotInitedByRecursiveIndex(PageTree.java:301) at org.icepdf.core.pobjects.PageTree.getPage(PageTree.java:381) at org.icepdf.ri.common.views.PageViewComponentImpl.getPage(PageViewComponentImpl.java:336) at org.icepdf.ri.common.views.PageViewComponentImpl$DirtyTimerAction.actionPerformed(PageViewComponentImpl.java:1265) at javax.swing.Timer.fireActionPerformed(Timer.java:312) at javax.swing.Timer$DoPostEvent.run(Timer.java:244) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    Users with the same issue

    mauritiusmauritius
    6 times, last one,
    esaaresaar
    9 times, last one,
    jkjk
    6 times, last one,
    filipebatistafilipebatista
    7 times, last one,
    Indri YunitaIndri Yunita
    244 times, last one,
    11 more bugmates