You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2017/11/07 06:40:00 UTC

[jira] [Resolved] (PDFBOX-3994) ClassCastException in COSParser.bfSearchForTrailer

     [ https://issues.apache.org/jira/browse/PDFBOX-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-3994.
----------------------------------------
    Resolution: Fixed

I've added the missing class check.

> ClassCastException in COSParser.bfSearchForTrailer
> --------------------------------------------------
>
>                 Key: PDFBOX-3994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.7, 2.0.8
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>              Labels: regression
>             Fix For: 2.0.9, 3.0.0
>
>         Attachments: PDFBOX-3994-A5YEWC5MQKVVX4ZQI5ZZAND6A2O3FPXM.pdf
>
>
> {code}
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSInteger cannot be cast to org.apache.pdfbox.cos.COSObject
>     org.apache.pdfbox.pdfparser.COSParser.bfSearchForTrailer(COSParser.java:1668)
>     org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:2110)
>     org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:246)
>     org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:189)
>     org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:240)
> {code}
> This worked in 2.0.6.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org