xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Bernardo (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (XGC-73) NPE in XMPHandler.endElement when creating a PDF/A-1b document using FOP
Date Wed, 24 Jun 2015 08:48:04 GMT

     [ https://issues.apache.org/jira/browse/XGC-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luis Bernardo updated XGC-73:
-----------------------------
    Fix Version/s:     (was: --)

> NPE in XMPHandler.endElement when creating a PDF/A-1b document using FOP
> ------------------------------------------------------------------------
>
>                 Key: XGC-73
>                 URL: https://issues.apache.org/jira/browse/XGC-73
>             Project: XMLGraphicsCommons
>          Issue Type: Bug
>          Components: xmp
>    Affects Versions: 1.4
>         Environment: Operating System: 
> Platform: PC
>            Reporter: oliver.moehrke
>            Assignee: XML Graphics Project Mailing List
>         Attachments: npe_issue_20120927.zip
>
>
> 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



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

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message