Java Mailing List Archive

http://www.java2.5341.com/

Home » fop-users-digest.xmlgraphics »

fop-users Digest 28 Jan 2013 10:59:49 -0000 Issue 2641

fop-users-digest-help

2013-01-28


Author LoginPost Reply

fop-users Digest 28 Jan 2013 10:59:49 -0000 Issue 2641

Topics (messages 36206 through 36207)

RTF is failing
 36206 by: markus.sticker.epos.zf.com
 36207 by: Robert Meyer

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: fop-users@(protected)
To unsubscribe, e-mail: fop-users-digest-unsubscribe@(protected)
For additional commands, e-mail: fop-users-digest-help@(protected)

----------------------------------------------------------------------


Attachment: fop-users_36206.eml (zipped)

Hi,

 

I just tried to generate a RTF using a very simple
FO-File, but I got this

 

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)

 

Do I have to do some more then setting the MineType to RTF?

Best Regards

 

Markus


Attachment: fop-users_36207.eml (zipped)
Hi,

I tried to reproduce and found I was getting the following message before getting a nullpointer:

"Only simple-page-masters are supported on page-sequences. Using default simple-page-master from page-sequence-master "presentation". (See position 19:76)"

This is because for some reason it didn't like that I was using a page sequence master  e.g.

<fo:simple-page-master master-name="test .../>
<fo:page-sequence-master master-name="testsequence">
  <fo:single-page-master-reference master-reference="test" />
</fo:page-sequence-master>
<fo:page-sequence master-reference="testsequence" ...>
...
</fo:page-sequence>

If I removed the page sequence from my FO to go into the RTF and instead did the following it worked fine:

<fo:simple-page-master master-name="test .../>
<fo:page-sequence master-reference="test" ...>
...
</fo:page-sequence>

At the moment I am not sure if this is a limitation, but it seems a bit odd that it cannot use simple page sequences so it warrants further investigation. There is a bug related to the same line in Jira found here:

https://issues.apache.org/jira/browse/FOP-2182

If you think your issue is not related to the page sequence master, it would help if you could post the example FO you are using.

I will investigate more when I get the chance.

Best Regards,

Robert Meyer
©2008 java2.5341.com - Jax Systems, LLC, U.S.A.