[
https://issues.apache.org/jira/browse/PDFBOX-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Leleu resolved PDFBOX-1632.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Assignee: Eric Leleu
Hi,
When it was possible I have replaced ValidationException by a ValidationError
description.
I have committed these changes in the revision r1495799.
A new category of error (8.x) has been added to represent unexpected errors
during the PDF processing.
Some ValidationException are still thrown in some special cases.
In attachment, you can find a patch that can be applied on the branch-1.8.
BR,
Eric
> Exception with validation
> -------------------------
>
> Key: PDFBOX-1632
> URL: https://issues.apache.org/jira/browse/PDFBOX-1632
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 1.8.2
> Environment: Redhat Linux
> Reporter: William Fausser
> Assignee: Eric Leleu
> Fix For: 2.0.0
>
> Attachments: PDFBox-1632.patch, simple-openoffice.pdf
>
>
> ./pdfbox-1.5.0/pdfbox/target/test-classes/input/simple-openoffice.pdf ::
> Exception in thread "main"
> org.apache.pdfbox.preflight.exception.ValidationException: Unable to process
> an element if it is null.
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:47)
> at
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:158)
> at
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:77)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:74)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:49)
> at
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:56)
> at
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:45)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:74)
> 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:158)
> at
> org.apache.pdfbox.preflight.Validator_A1b.main(Validator_A1b.java:125)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira