[ 
https://issues.apache.org/jira/browse/PDFBOX-3487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15477422#comment-15477422
 ] 

ASF subversion and git services commented on PDFBOX-3487:
---------------------------------------------------------

Commit 1760055 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1760055 ]

PDFBOX-3487: avoid ClassCastException if /ID is not an array

> ClassCastException in COSWriter.write() when saving PDF
> -------------------------------------------------------
>
>                 Key: PDFBOX-3487
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3487
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 2.0.2, 2.0.3, 2.1.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.3, 2.1.0
>
>
> {code}
> Exception in thread "main" java.lang.ClassCastException: 
> org.apache.pdfbox.cos.COSInteger cannot be cast to 
> org.apache.pdfbox.cos.COSArray
>       at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1349)
>       at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1287)
>       at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1160)
>       at pdfboxpageimageextraction.LoadSave.main(LoadSave.java:22)
> {code}
> The cause is a bad /ID, that isn't an array.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to