xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53939] New: NPE in XMPHandler.endElement when creating a PDF/A-1b document using FOP
Date Thu, 27 Sep 2012 08:57:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53939

          Priority: P2
            Bug ID: 53939
          Assignee: general@xmlgraphics.apache.org
           Summary: NPE in XMPHandler.endElement when creating a PDF/A-1b
                    document using FOP
          Severity: normal
    Classification: Unclassified
          Reporter: Oliver.Moehrke@web.de
          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: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message