Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.3
-
Fix Version/s: 5.0.4
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:All
-
Salesforce Case Reference:
Description
The following error stack trace is thrown when rendering the provided customer PDF (this doesn't seem to be preventing the content from rendering):
WARNING: Error parsing content stream.
java.lang.ArrayIndexOutOfBoundsException: 0
at org.icepdf.core.util.content.a.b(Unknown Source)
at org.icepdf.core.util.content.a.a(Unknown Source)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:368)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1039)
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)
WARNING: Error parsing content stream.
java.lang.ArrayIndexOutOfBoundsException: 0
at org.icepdf.core.util.content.a.b(Unknown Source)
at org.icepdf.core.util.content.a.a(Unknown Source)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:368)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1039)
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)
Issue Links
- is duplicated by
-
PDF-823 Pro content parser is failing on empty dictionary definition.
- Closed
Activity
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case Reference | 5007000000W4OcMAAV |
Patrick Corless
made changes -
Fix Version/s | 5.0.4 [ 11072 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Yury Shulhat
made changes -
Attachment | Deutsch.1.pdf [ 17496 ] | |
Attachment | Deutsch.1.png [ 17497 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
The PDF in question contains a content stream that is zero bytes long. The content parser seems to have an issue with the empty content stream and is reporting the index out of bounds error. But as Arran pointed out the error is not causing any rendering issues.