java.lang.NullPointerException

ICEsoft JIRA Issue Tracker | Arran Mccullough | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When displaying the pages in the provided PDF file the following NPE is thrown with the ICEpdf Viewer: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.icepdf.ri.common.views.annotations.AnnotationComponentFactory.buildAnnotationComponent(AnnotationComponentFactory.java:56) at org.icepdf.ri.common.views.AbstractPageViewComponent.refreshAnnotationComponents(AbstractPageViewComponent.java:187) at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer$1.run(PageViewComponentImpl.java:1159) 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) When calling Document.getPageImage the following NPE is thrown: java.lang.NullPointerException at org.icepdf.core.pobjects.Page.paintPageContent(Page.java:599) at org.icepdf.core.pobjects.Page.paint(Page.java:531) at org.icepdf.core.pobjects.Page.paint(Page.java:460) at org.icepdf.core.pobjects.Document.getPageImage(Document.java:1116) at proquest.proc.icepdf.IcePdfProcessor.generatePageImage(IcePdfProcessor.scala:56) Even with these errors the PDR renders fine.

    ICEsoft JIRA Issue Tracker | 2 years ago | Arran Mccullough
    java.lang.NullPointerException
  2. 0

    When displaying the pages in the provided PDF file the following NPE is thrown with the ICEpdf Viewer: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.icepdf.ri.common.views.annotations.AnnotationComponentFactory.buildAnnotationComponent(AnnotationComponentFactory.java:56) at org.icepdf.ri.common.views.AbstractPageViewComponent.refreshAnnotationComponents(AbstractPageViewComponent.java:187) at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer$1.run(PageViewComponentImpl.java:1159) 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) When calling Document.getPageImage the following NPE is thrown: java.lang.NullPointerException at org.icepdf.core.pobjects.Page.paintPageContent(Page.java:599) at org.icepdf.core.pobjects.Page.paint(Page.java:531) at org.icepdf.core.pobjects.Page.paint(Page.java:460) at org.icepdf.core.pobjects.Document.getPageImage(Document.java:1116) at proquest.proc.icepdf.IcePdfProcessor.generatePageImage(IcePdfProcessor.scala:56) Even with these errors the PDR renders fine.

    ICEsoft JIRA Issue Tracker | 2 years ago | Arran Mccullough
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.icepdf.ri.common.views.annotations.AnnotationComponentFactory.buildAnnotationComponent()
    2. org.icepdf.ri
      PageViewComponentImpl$PageInitializer$1.run
      1. org.icepdf.ri.common.views.annotations.AnnotationComponentFactory.buildAnnotationComponent(AnnotationComponentFactory.java:56)
      2. org.icepdf.ri.common.views.AbstractPageViewComponent.refreshAnnotationComponents(AbstractPageViewComponent.java:187)
      3. org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer$1.run(PageViewComponentImpl.java:1159)
      3 frames
    3. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
      3. java.awt.EventQueue.access$200(EventQueue.java:103)
      4. java.awt.EventQueue$3.run(EventQueue.java:694)
      5. java.awt.EventQueue$3.run(EventQueue.java:692)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
      9. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      10. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      11. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      12. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      13. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      14. java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
      14 frames