[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Ugly stack trace with admon.graphics and FO
Hello Steve! The error you get is most likely caused by some erroneous PNG image file or some other image file with alpha transparency. Ask Google for more information about this issue. You need to find out which image file is causing the error. The most common solution is to simply run that image file through ImageMagick. See e.g. http://comments.gmane.org/gmane.text.xml.fop.user/31508 Regards, /frank 26 apr 2011 kl. 00.45 skrev Steve Johnson: > In my customization file for FO processing, I have this: > > <xsl:param name="admon.graphics" select="0"></xsl:param> > <xsl:param name="admon.graphics.path">Graphics/</xsl:param> > > If I change the first line to: > > <xsl:param name="admon.graphics" select="1"></xsl:param> > > I get a horrendously long and ugly stack trace and I don't know why. Help? (xsltproc handles it fine) > > Apr 25, 2011 5:44:02 PM org.apache.fop.fo.FOTreeBuilder fatalError > SEVERE: javax.xml.transform.TransformerException: java.lang.NullPointerException: Parameter alpha must not be null > Apr 25, 2011 5:44:02 PM org.apache.fop.cli.Main startFOP > SEVERE: Exception > javax.xml.transform.TransformerException: java.lang.NullPointerException: Parameter alpha must not be null > at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) > at org.apache.fop.cli.Main.startFOP(Main.java:166) > at org.apache.fop.cli.Main.main(Main.java:197) > Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException: Parameter alpha must not be null > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416) > at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374) > at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393) > at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) > at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393) > at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281) > at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367) > 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:214) > ... 3 more > Caused by: java.lang.NullPointerException: Parameter alpha must not be null > at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:54) > at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:68) > at org.apache.fop.render.pdf.ImageRenderedAdapter.setup(ImageRenderedAdapter.java:101) > at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:823) > at org.apache.fop.render.pdf.PDFImageHandlerRenderedImage.generateImage(PDFImageHandlerRenderedImage.java:58) > at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1745) > at org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1679) > at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:743) > at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:621) > at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:626) > at org.apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java:1345) > at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:601) > at org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:1336) > at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:536) > at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:573) > at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) > at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:526) > at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:573) > at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) > at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:526) > at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:573) > at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) > at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:526) > at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:573) > at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) > at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:526) > at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:573) > at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) > at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:526) > at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:573) > at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) > at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:526) > at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:573) > at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) > at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:526) > at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:424) > at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:577) > at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:403) > at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:337) > at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:282) > at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:255) > at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:229) > at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:801) > at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:113) > 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.AbstractPageSequenceLayoutManager.makeNewPage(AbstractPageSequenceLayoutManager.java:284) > at org.apache.fop.layoutmgr.PageBreaker.handleBreakTrait(PageBreaker.java:494) > at org.apache.fop.layoutmgr.PageBreaker.startPart(PageBreaker.java:398) > at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:421) > at org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:371) > at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:262) > at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:346) > at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) > at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) > > .......... > > ; SystemID: file:/C:/caringo-docbook-sample/docbook/stylesheets-standard/fo/profile-docbook.xsl; Line#: 262; Column#: 54 > javax.xml.transform.TransformerException: java.lang.NullPointerException: Parameter alpha must not be null > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416) > at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374) > at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393) > at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) > at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393) > at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139) > at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) > at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281) > at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367) > 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:214) > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) > at org.apache.fop.cli.Main.startFOP(Main.java:166) > at org.apache.fop.cli.Main.main(Main.java:197) > Caused by: java.lang.NullPointerException: Parameter alpha must not be null > at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:54) > at org.apache.fop.pdf.AlphaRasterImage.<init>(AlphaRasterImage.java:68) > at org.apache.fop.render.pdf.ImageRenderedAdapter.setup(ImageRenderedAdapter.java:101) > at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:823) > at org.apache.fop.render.pdf.PDFImageHandlerRenderedImage.generateImage(PDFImageHandlerRenderedImage.java:58) > at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1745) > at org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1679) > at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:743) > at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:621) > at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:626) > at org.apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java:1345) > > .............. > > > -- > > ------------ > > Steve Johnson, Senior Content Developer > Caringo > stevej@caringo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]