You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/11/18 08:55:34 UTC

[jira] [Commented] (PDFBOX-2486) ClassCastException in preflight: PDNonTerminalField cannot be cast to PDField

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

Tilman Hausherr commented on PDFBOX-2486:
-----------------------------------------

{quote}Weird stuff: checking the file 006654.pdf with pdf-tools brings "The document contains actions types other than for navigation (Launch, JavaScript, ResetForm, etc.)." among many other errors. Where are these action types? My understanding is that these are /A and /AA and they're not at any field in this file.{quote}
There is Javascript stuff in a names array.

> ClassCastException in preflight: PDNonTerminalField cannot be cast to PDField
> -----------------------------------------------------------------------------
>
>                 Key: PDFBOX-2486
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2486
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm, Preflight
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>         Attachments: 004324.pdf, 006654.pdf, 006982.pdf, PDFBOX-2486.patch
>
>
> I get this with the attached files:
> {code}
> Exception in thread "main" java.lang.ClassCastException: org.apache.pdfbox.pdmodel.interactive.form.PDNonTerminalField cannot be cast to org.apache.pdfbox.pdmodel.interactive.form.PDField
> 	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
> 	at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.validate(AcroFormValidationProcess.java:60)
> 	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
> 	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88)
> 	at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)
> 	at org.apache.pdfbox.preflight.Validator_A1b.runSimple(Validator_A1b.java:161)
> 	at org.apache.pdfbox.preflight.Validator_A1b.main(Validator_A1b.java:126)
> {code}



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