DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38132>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38132

           Summary: NullPointerException while rendering rtf
           Product: Fop
           Version: 0.91
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: rtf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: [EMAIL PROTECTED]


Hi,

Hopefully this is not inappropriate (first time reporting bug), but i searched
and searched and could not find a satisfactory answer anywhere else...

I have a document that renders ok with -pdf, but when I try with the -rtf option
I get a NullPointerException.

Here's the output with the -d option

endElement for top-level fo:root
Parsing of document complete
java.lang.NullPointerException
Exception
javax.xml.transform.TransformerException: java.lang.NullPointerException
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:144)
        at org.apache.fop.cli.InputHandler.render(InputHandler.java:101)
        at org.apache.fop.cli.Main.startFOP(Main.java:167)
        at org.apache.fop.cli.Main.main(Main.java:200)

---------

javax.xml.transform.TransformerException: java.lang.NullPointerException
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1430)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:141)
        at org.apache.fop.cli.InputHandler.render(InputHandler.java:101)
        at org.apache.fop.cli.Main.startFOP(Main.java:167)
        at org.apache.fop.cli.Main.main(Main.java:200)
Caused by: java.lang.NullPointerException
        at java.io.Writer.write(Unknown Source)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeControlWord(RtfElement.java:109)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeOneAttribute(RtfElement.java:228)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeAttributes(RtfElement.java:203)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeOneAttribute(RtfElement.java:225)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeAttributes(RtfElement.java:203)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun$RtfOpenGroupMark.writeRtfContent(RtfTextrun.java:71)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun.writeRtfContent(RtfTextrun.java:372)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer.writeRtfContent(RtfContainer.java:135)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer.writeRtfContent(RtfContainer.java:135)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer.writeRtfContent(RtfContainer.java:135)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfFile.flush(RtfFile.java:219)
        at org.apache.fop.render.rtf.RTFHandler.endDocument(RTFHandler.java:155)
        at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)
        at 
org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:181)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378)
        ... 7 more
---------
java.lang.NullPointerException
        at java.io.Writer.write(Unknown Source)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeControlWord(RtfElement.java:109)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeOneAttribute(RtfElement.java:228)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeAttributes(RtfElement.java:203)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeOneAttribute(RtfElement.java:225)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeAttributes(RtfElement.java:203)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun$RtfOpenGroupMark.writeRtfContent(RtfTextrun.java:71)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTextrun.writeRtfContent(RtfTextrun.java:372)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer.writeRtfContent(RtfContainer.java:135)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer.writeRtfContent(RtfContainer.java:135)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer.writeRtfContent(RtfContainer.java:135)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement.writeRtf(RtfElement.java:86)
        at 
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfFile.flush(RtfFile.java:219)
        at org.apache.fop.render.rtf.RTFHandler.endDocument(RTFHandler.java:155)
        at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:246)
        at 
org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:181)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:141)
        at org.apache.fop.cli.InputHandler.render(InputHandler.java:101)
        at org.apache.fop.cli.Main.startFOP(Main.java:167)
        at org.apache.fop.cli.Main.main(Main.java:200)

I'm no expert, so I'm a bit stumped...

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to