ICEpdf
  1. ICEpdf
  2. PDF-1035

InvocationTargetException thrown when rendering PDF

    Details

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

      Description

      The following error stack trace is thrown when rendering the provided PDF file:

      WARNING: Error generating widget field
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at org.icepdf.ri.common.views.annotations.AnnotationComponentFactory.generatedWidgetField(AnnotationComponentFactory.java:180)
      at org.icepdf.ri.common.views.annotations.AnnotationComponentFactory.buildAnnotationComponent(AnnotationComponentFactory.java:124)
      at org.icepdf.ri.common.views.AbstractPageViewComponent.refreshAnnotationComponents(AbstractPageViewComponent.java:202)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PagePainter.run(PageViewComponentImpl.java:1101)
      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)
      Caused by: java.lang.NullPointerException
      at org.icepdf.core.pobjects.annotations.TextWidgetAnnotation.buildTextWidgetContents(TextWidgetAnnotation.java:158)
      at org.icepdf.core.pobjects.annotations.TextWidgetAnnotation.resetAppearanceStream(TextWidgetAnnotation.java:70)
      at org.icepdf.core.pobjects.annotations.Annotation.resetAppearanceStream(Annotation.java:1826)
      at org.icepdf.core.pro.acroform.TextFieldComponent.resetAppearanceShapes(Unknown Source)
      at org.icepdf.core.pro.acroform.TextFieldComponent.<init>(Unknown Source)
      ... 11 more

        Activity

        Arran Mccullough created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.1.3 [ 13086 ]
        Hide
        Patrick Corless added a comment -

        The initial issue is related to the the lack of a bbox value for the content stream. There is a rectangle value that can be used as an alternative. Further testing has shown that there is also an issue with the setting of the special values when writing out the content stream.

        Show
        Patrick Corless added a comment - The initial issue is related to the the lack of a bbox value for the content stream. There is a rectangle value that can be used as an alternative. Further testing has shown that there is also an issue with the setting of the special values when writing out the content stream.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49394 Mon Oct 24 14:01:52 MDT 2016 patrick.corless PDF-1035 fixed encoding issue when writing field content stream and added code to handle a null bbox entry.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/annotations/AppearanceState.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/annotations/AbstractWidgetAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/annotations/ChoiceWidgetAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextWidgetAnnotation.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49444 Wed Nov 02 15:46:29 MDT 2016 patrick.corless PDF-1035 removed JDK 8 specific calls.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/annotations/ChoiceWidgetAnnotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextWidgetAnnotation.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49506 Tue Nov 08 12:21:33 MST 2016 patrick.corless PDF-1035 fixed encoding issue when writing field content stream and added code to handle a null bbox entry.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/AbstractWidgetAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/ChoiceWidgetAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextWidgetAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/AppearanceState.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49521 Tue Nov 08 13:01:44 MST 2016 patrick.corless PDF-1035 removed JDK 8 specific calls.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/ChoiceWidgetAnnotation.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/TextWidgetAnnotation.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: