xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Edwards <grant.b.edwa...@gmail.com>
Subject FOP error when fed asciidoc .fo file
Date Wed, 08 Sep 2010 18:47:34 GMT
I'm trying to use fop as a backend for the asciidoc text-markup
system. All was sell until I tried to include a .png file that
contains a rendering of an equation (produced auto-magically by
asciidoc using LaTeX and dvipng).

I get an error:

   SEVERE: Error while rendering page 1
   java.lang.NullPointerException: Parameter alpha must not be null

   [full output from fop is below]

If I replace the .png file with something I generate using the
"import" command from ImageMagick, then everything is fine.
   
Other image viewers seem happy enough with the .png file upon which
fop is choking.  If I just run the .png file through convert and set
the background to white instead of transparant, then fop is happy.

Is this a bug in fop or in dvipng?


Sep 8, 2010 1:40:13 PM org.apache.fop.area.RenderPagesModel addPage
SEVERE: Error while rendering page 1
java.lang.NullPointerException: Parameter alpha must not be null
	at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:57)
	at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:71)
	at org.apache.fop.render.pdf.ImageRenderedAdapter.setup(ImageRenderedAdapter.java:125)
	at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:828)
	at org.apache.fop.render.pdf.PDFImageHandlerRenderedImage.handleImage(PDFImageHandlerRenderedImage.java:80)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:227)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:183)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:148)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:270)
	at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:146)
	at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1171)
	at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1158)
	at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:741)
	at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:709)
	at org.apache.fop.render.intermediate.IFRenderer.renderViewport(IFRenderer.java:860)
	at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:634)
	at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:912)
	at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:609)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:544)
	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:581)
	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:976)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:534)
	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:581)
	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:976)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:534)
	at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:432)
	at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:665)
	at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:411)
	at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:345)
	at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:292)
	at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:731)
	at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:265)
	at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:230)
	at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:580)
	at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:114)
	at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312)
	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:167)
	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:109)
	at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
	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:299)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
	at org.apache.fop.cli.Main.startFOP(Main.java:174)
	at org.apache.fop.cli.Main.main(Main.java:205)
Sep 8, 2010 1:40:13 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException: Parameter alpha must not be null
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
	at org.apache.fop.cli.Main.startFOP(Main.java:174)
	at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: java.lang.NullPointerException: Parameter alpha must not be null
	at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:57)
	at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:71)
	at org.apache.fop.render.pdf.ImageRenderedAdapter.setup(ImageRenderedAdapter.java:125)
	at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:828)
	at org.apache.fop.render.pdf.PDFImageHandlerRenderedImage.handleImage(PDFImageHandlerRenderedImage.java:80)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:227)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:183)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:148)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:270)
	at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:146)
	at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1171)
	at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1158)
	at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:741)
	at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:709)
	at org.apache.fop.render.intermediate.IFRenderer.renderViewport(IFRenderer.java:860)
	at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:634)
	at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:912)
	at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:609)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:544)
	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:581)
	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:976)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:534)
	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:581)
	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:976)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:534)
	at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:432)
	at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:665)
	at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:411)
	at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:345)
	at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:292)
	at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:731)
	at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:265)
	at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:230)
	at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:580)
	at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:114)
	at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312)
	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:167)
	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:109)
	at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
	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:299)
	... 3 more

---------

java.lang.NullPointerException: Parameter alpha must not be null
	at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:57)
	at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:71)
	at org.apache.fop.render.pdf.ImageRenderedAdapter.setup(ImageRenderedAdapter.java:125)
	at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:828)
	at org.apache.fop.render.pdf.PDFImageHandlerRenderedImage.handleImage(PDFImageHandlerRenderedImage.java:80)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:227)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:183)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:148)
	at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingURI(AbstractIFPainter.java:270)
	at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:146)
	at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1171)
	at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.java:1158)
	at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:741)
	at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:709)
	at org.apache.fop.render.intermediate.IFRenderer.renderViewport(IFRenderer.java:860)
	at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:634)
	at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:912)
	at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:609)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:544)
	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:581)
	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:976)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:534)
	at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:581)
	at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:976)
	at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:534)
	at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:432)
	at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:665)
	at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:411)
	at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:345)
	at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:292)
	at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:731)
	at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:265)
	at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:230)
	at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:580)
	at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:114)
	at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312)
	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:167)
	at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:109)
	at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
	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:299)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
	at org.apache.fop.cli.Main.startFOP(Main.java:174)
	at org.apache.fop.cli.Main.main(Main.java:205)


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


Mime
View raw message