Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2465

NPE in PdfaExtensionHelper.populateSchemaMapping

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 1.8.8, 2.0.0
    • Fix Version/s: 1.8.8, 2.0.0
    • Component/s: XmpBox
    • Labels:
      None

      Description

      I get this exception by running preflight on the attached files:

      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)
      

        Attachments

        1. example_030.pdf
          28 kB
          Tilman Hausherr
        2. example_026.pdf
          30 kB
          Tilman Hausherr
        3. example_013.pdf
          25 kB
          Tilman Hausherr

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: