Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.5
-
Fix Version/s: 5.0.6
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:Levigo JBIG2 library
-
Support Case References:
-
Workaround Exists:Yes
-
Workaround Description:Remove the levigo jar file from the classpath
Description
When loading the PDF provided from the customer, the following error stack trace is thrown. When removing the levigo jar from the class path the PDF renders fine without any errors.
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:743)
at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:373)
at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:306)
at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:95)
at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:39)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
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.RuntimeException: Can't instantiate segment class
at com.levigo.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:405)
at com.levigo.jbig2.JBIG2Page.createNormalPage(JBIG2Page.java:182)
at com.levigo.jbig2.JBIG2Page.createPage(JBIG2Page.java:154)
at com.levigo.jbig2.JBIG2Page.composePageBitmap(JBIG2Page.java:145)
at com.levigo.jbig2.JBIG2Page.getBitmap(JBIG2Page.java:125)
at com.levigo.jbig2.JBIG2ImageReader.read(JBIG2ImageReader.java:223)
at javax.imageio.ImageReader.read(ImageReader.java:940)
... 14 more
Caused by: java.lang.RuntimeException: Can't instantiate segment class
at com.levigo.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:405)
at com.levigo.jbig2.segments.TextRegion.initSymbols(TextRegion.java:818)
at com.levigo.jbig2.segments.TextRegion.getSymbols(TextRegion.java:249)
at com.levigo.jbig2.segments.TextRegion.parseHeader(TextRegion.java:151)
at com.levigo.jbig2.segments.TextRegion.init(TextRegion.java:901)
at com.levigo.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:400)
... 20 more
Caused by: java.lang.NullPointerException
at com.levigo.jbig2.segments.SymbolDictionary.retrieveImportSymbols(SymbolDictionary.java:816)
at com.levigo.jbig2.segments.SymbolDictionary.setInSyms(SymbolDictionary.java:242)
at com.levigo.jbig2.segments.SymbolDictionary.parseHeader(SymbolDictionary.java:131)
at com.levigo.jbig2.segments.SymbolDictionary.init(SymbolDictionary.java:844)
at com.levigo.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:400)
... 25 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:743)
at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:373)
at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:306)
at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:95)
at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:39)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
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.RuntimeException: Can't instantiate segment class
at com.levigo.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:405)
at com.levigo.jbig2.JBIG2Page.createNormalPage(JBIG2Page.java:182)
at com.levigo.jbig2.JBIG2Page.createPage(JBIG2Page.java:154)
at com.levigo.jbig2.JBIG2Page.composePageBitmap(JBIG2Page.java:145)
at com.levigo.jbig2.JBIG2Page.getBitmap(JBIG2Page.java:125)
at com.levigo.jbig2.JBIG2ImageReader.read(JBIG2ImageReader.java:223)
at javax.imageio.ImageReader.read(ImageReader.java:940)
... 14 more
Caused by: java.lang.RuntimeException: Can't instantiate segment class
at com.levigo.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:405)
at com.levigo.jbig2.segments.TextRegion.initSymbols(TextRegion.java:818)
at com.levigo.jbig2.segments.TextRegion.getSymbols(TextRegion.java:249)
at com.levigo.jbig2.segments.TextRegion.parseHeader(TextRegion.java:151)
at com.levigo.jbig2.segments.TextRegion.init(TextRegion.java:901)
at com.levigo.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:400)
... 20 more
Caused by: java.lang.NullPointerException
at com.levigo.jbig2.segments.SymbolDictionary.retrieveImportSymbols(SymbolDictionary.java:816)
at com.levigo.jbig2.segments.SymbolDictionary.setInSyms(SymbolDictionary.java:242)
at com.levigo.jbig2.segments.SymbolDictionary.parseHeader(SymbolDictionary.java:131)
at com.levigo.jbig2.segments.SymbolDictionary.init(SymbolDictionary.java:844)
at com.levigo.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:400)
... 25 more
Issue Links
- is duplicated by
-
PDF-728 Problem loading JBIG2 image: InvocationTargetException
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Arran Mccullough
made changes -
Support Case References | Support Case #12735 - https://icesoft.my.salesforce.com/5007000000aduTZ |
Support Case #12735 - https://icesoft.my.salesforce.com/5007000000aduTZ
Support Case #12748 - https://icesoft.my.salesforce.com/5007000000aejV2 |
Patrick Corless
made changes -
Fix Version/s | 5.0.6 [ 11381 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |