Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
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 ] |
Patrick Corless
made changes -
Fix Version/s | 5.0.4 [ 11072 ] | |
Fix Version/s | 5.1 [ 10675 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
We are moving to a new JBIG2 image library for 5.1. Hopefully this issue can be closed with the 5. release.