[jira] [Commented] (FOP-2182) org.apache.fop.render.rtf.RTFHandler.startPageSequence(RTFHandler.java:221)

Jörg Hohwiller (Jira) <[email protected]>
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/FOP-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18015130#comment-18015130 ] 

Jörg Hohwiller commented on FOP-2182:
-------------------------------------

Already tricky to find the sources:

[https://github.com/apache/xmlgraphics-fop/blob/12e38b076039d43b77efd3b39985a4153d10b30a/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java#L221]

I am using 2.0 what is latest release and claimed to be fixed version of FOP-2321 but getting:
{code:java}
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.fop.fo.pagination.Flow.getFlowName()" because the return value of "org.apache.fop.fo.pagination.PageSequence.getMainFlow()" is null
    at org.apache.fop.render.rtf.RTFHandler.startPageSequence (RTFHandler.java:221)
    at org.apache.fop.fo.pagination.PageSequence.startOfNode (PageSequence.java:119)
    at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement (FOTreeBuilder.java:325)
    at org.apache.fop.fo.FOTreeBuilder.startElement (FOTreeBuilder.java:175)
    at org.apache.xalan.transformer.TransformerIdentityImpl.startElement (TransformerIdentityImpl.java:1072)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement (Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement (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.xalan.transformer.TransformerIdentityImpl.transform (TransformerIdentityImpl.java:484)
...{code}

> org.apache.fop.render.rtf.RTFHandler.startPageSequence(RTFHandler.java:221)
> ---------------------------------------------------------------------------
>
>                 Key: FOP-2182
>                 URL: https://issues.apache.org/jira/browse/FOP-2182
>             Project: FOP
>          Issue Type: Bug
>            Reporter: Mathieu Malaterre
>            Priority: Major
>         Attachments: demo.fo
>
>
> I cannot build an rtf file from a fo. It keep on failing with:
> java.lang.NullPointerException
> 	at org.apache.fop.render.rtf.RTFHandler.startPageSequence(RTFHandler.java:221)
> 	at org.apache.fop.fo.pagination.PageSequence.startOfNode(PageSequence.java:119)
> 	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:325)
> 	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175)
> 	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073)
> 	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> 	at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(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:485)
> 	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
> 	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)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.