ICEpdf
  1. ICEpdf
  2. PDF-622

Problem loading JBIG2 image - InvocationTargetException/ArrayIndexOutOfBoundsException

    Details

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

      Description

      The following error is thrown when rendering a PDF which is preventing it from displaying:

      WARNING: Problem loading JBIG2 image:
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.icepdf.core.pobjects.ImageStream.jbig2Decode(ImageStream.java:717)
      at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:362)
      at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:295)
      at org.icepdf.core.pobjects.graphics.ImageStreamReference.run(ImageStreamReference.java:66)
      at org.icepdf.core.pobjects.graphics.ImageStreamReference.<init>(ImageStreamReference.java:49)
      at org.icepdf.core.pobjects.graphics.ImageReferenceFactory.getImageReference(ImageReferenceFactory.java:95)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Do(AbstractContentParser.java:620)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Page.init(Page.java:367)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017)
      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)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 11978
      at org.jpedal.jbig2.io.StreamReader.readByte(StreamReader.java:93)
      at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.handleSegmentNumber(JBIG2StreamDecoder.java:504)
      at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegmentHeader(JBIG2StreamDecoder.java:470)
      at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegments(JBIG2StreamDecoder.java:225)
      at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.decodeJBIG2(JBIG2StreamDecoder.java:174)
      at org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(JBIG2Decoder.java:148)
      ... 17 more

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case Reference 5007000000Ud9OpAAJ
        Arran Mccullough made changes -
        Summary Problem loading JBIG2 image - InvocationTargetException Problem loading JBIG2 image - InvocationTargetException/ArrayIndexOutOfBoundsException
        Patrick Corless made changes -
        Fix Version/s 5.1 [ 10675 ]
        Hide
        Patrick Corless added a comment -

        We are moving to a new JBIG2 image library for 5.1. Hopefully this issue can be closed with the 5. release.

        Show
        Patrick Corless added a comment - We are moving to a new JBIG2 image library for 5.1. Hopefully this issue can be closed with the 5. release.
        Patrick Corless made changes -
        Fix Version/s 5.0.4 [ 11072 ]
        Fix Version/s 5.1 [ 10675 ]
        Hide
        Patrick Corless added a comment -

        We are moving away from the jbig2 implementation provided by jpedal and are moving to the Levigo library. The library is licensed under LGPA so we won't be distributing it with the OS bundle but if added to the class path ICEpdf will try to use it.

        We licensed a special commercial version of Levigo which we are shipping with the PRO version for our enterprise customers.

        Show
        Patrick Corless added a comment - We are moving away from the jbig2 implementation provided by jpedal and are moving to the Levigo library. The library is licensed under LGPA so we won't be distributing it with the OS bundle but if added to the class path ICEpdf will try to use it. We licensed a special commercial version of Levigo which we are shipping with the PRO version for our enterprise customers.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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: