pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-2465) NPE in PdfaExtensionHelper.populateSchemaMapping
Date Mon, 03 Nov 2014 08:41:33 GMT

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

Tilman Hausherr commented on PDFBOX-2465:
-----------------------------------------

Yes but why is this wrong? That file isn't a PDF/A file. Are you saying that this error is
wrong?

> NPE in PdfaExtensionHelper.populateSchemaMapping
> ------------------------------------------------
>
>                 Key: PDFBOX-2465
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2465
>             Project: PDFBox
>          Issue Type: Bug
>          Components: XmpBox
>    Affects Versions: 1.8.7, 1.8.8, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 1.8.8, 2.0.0
>
>         Attachments: example_013.pdf, example_026.pdf, example_030.pdf
>
>
> I get this exception by running preflight on the attached files:
> {code}
> java.lang.NullPointerException
> 	at org.apache.xmpbox.xml.PdfaExtensionHelper.populateSchemaMapping(PdfaExtensionHelper.java:198)
> 	at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:202)
> 	at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:114)
> 	at org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:67)
> 	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.util.TestPDFToImage.doTestFile(TestPDFToImage.java:337)
> 	at org.apache.pdfbox.util.TestPDFToImage.testRenderImage(TestPDFToImage.java:382)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at junit.framework.TestCase.runBare(TestCase.java:141)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at junit.textui.TestRunner.doRun(TestRunner.java:116)
> 	at junit.textui.TestRunner.start(TestRunner.java:183)
> 	at junit.textui.TestRunner.main(TestRunner.java:137)
> 	at org.apache.pdfbox.util.TestPDFToImage.main(TestPDFToImage.java:432)
> {code}



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

Mime
View raw message