xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominic Br├╝gger <brueg...@puzzle.ch>
Subject PNG images in RTF
Date Mon, 11 Dec 2006 09:21:19 GMT
I'm getting the NullPointerException below when including a PNG image 
with fo:external-graphic to produce RTF output. I am using an actual FOP 
trunk. I attached a simple example that produces the error.

As PNG images should be supported by FOP I think this is a bug. Or is 
there an error in my FO file?

Regards
Dominic


java.lang.NullPointerException
         at org.apache.commons.io.IOUtils.copy(IOUtils.java:920)
         at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:215)
         at 
org.apache.fop.image.AbstractFopImage.loadDefaultOriginalData(AbstractFopImage.java:223)
         at 
org.apache.fop.image.ImageIOImage.loadOriginalData(ImageIOImage.java:217)
         at 
org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:174)
         at org.apache.fop.render.rtf.RTFHandler.image(RTFHandler.java:1131)
         at 
org.apache.fop.render.rtf.RTFHandler.invokeDeferredEvent(RTFHandler.java:1492)
         at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1616)
         at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
         at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
         at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1639)
         at 
org.apache.fop.render.rtf.RTFHandler.endPageSequence(RTFHandler.java:236)
         at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:148)
         at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
         at 
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
         at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
         at 
org.apache.xerces.parsers.AbstractSAXParser.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.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
         at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
         at org.apache.fop.cli.Main.startFOP(Main.java:160)
         at org.apache.fop.cli.Main.main(Main.java:191)


Mime
View raw message