Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 6.1
-
Fix Version/s: 6.1.1
-
Component/s: Core/Rendering
-
Labels:None
-
Environment:All
-
Support Case References:Support Case #13731 - https://icesoft.my.salesforce.com/5007000001Znns7
Description
A set of PDF files have been provided by a customer. When rendering the 3rd (last) page of the PDF files the following exception is thrown:
WARNING: Error initiating page: 2
java.lang.ClassCastException: java.lang.String cannot be cast to org.icepdf.core.pobjects.Reference
at org.icepdf.core.pobjects.Page.initPageContents(Page.java:230)
at org.icepdf.core.pobjects.Page.init(Page.java:363)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1169)
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)
WARNING: Error initiating page: 2
java.lang.ClassCastException: java.lang.String cannot be cast to org.icepdf.core.pobjects.Reference
at org.icepdf.core.pobjects.Page.initPageContents(Page.java:230)
at org.icepdf.core.pobjects.Page.init(Page.java:363)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1169)
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)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
The page's content array has an extra entry with a value of the string "null". This is technically against the specification but none the less easy to adjust for.
Check in a fix for both the 6.1 branch and trunk.