https://issues.apache.org/bugzilla/show_bug.cgi?id=53939

          Priority: P2
            Bug ID: 53939
          Assignee: [email protected]
           Summary: NPE in XMPHandler.endElement when creating a PDF/A-1b
                    document using FOP
          Severity: normal
    Classification: Unclassified
          Reporter: [email protected]
          Hardware: PC
            Status: NEW
           Version: 1.4
         Component: xmp
           Product: XMLGraphicsCommons

Created attachment 29425
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29425&action=edit
FO file with XMP structure, FOP config with fonts and Stacktrace

When using FOP v1.0 or v1.1rc to create a PDF/A-1b compliant PDF document,
embedding an XMP structure that contains an <xmpMM:History> entry leads to a
NPE in XMPHandler.endElement.

This happens, when the history entry contains at least one <stVer:event> entry.
I used the Xalan (2.7.0) and Xerces (2.7.1) versions, that are deliverd with
FOP v1.0 and v1.1rc1.

Stacktrace:

java.lang.NullPointerException
    at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
    at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
    at org.apache.fop.cli.Main.startFOP(Main.java:177)
    at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: java.lang.NullPointerException
    at org.apache.xmlgraphics.xmp.XMPHandler.endElement(XMPHandler.java:291)
    at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
    at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
    at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
    ... 3 more

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to