cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Irving Salisbury III <...@dotech.com>
Subject Re: Perplexing PDF SVG question
Date Mon, 23 Jun 2003 13:51:01 GMT
I am on windows XP using cocoon-2.0.4.  I understand the headless issue 
and that is not my problem. 

On the same box, I use the same version of fop (0.20.4), and the command 
line fop.bat file renders it perfectly.  Running inisde cocoon gives me 
the error that I outlined below.

Irv

Schaper, Christoph wrote:

>Just guessing: You are on Unix and you don't have the display variable set
>when you run  cocoon? 
>If this is the case, either point the display variable to your X environment
>or, if you don't have one search in the cocoon docu for "headless".
>
>
>Christoph
>
>-----Original Message-----
>From: Irving Salisbury III [mailto:irv@dotech.com]
>Sent: 23 June 2003 15:27
>To: cocoon-users@xml.apache.org
>Subject: Perplexing PDF SVG question
>
>
>I have embedded an SVG image into my xsl:fo document.  It renders fine 
>when using command line fop.  However, when I put it in a cocoon 
>pipeline, I am getting the following error:
>
>ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
>(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
>not be built: null
>java.lang.NullPointerException
>    at java.net.URL.<init>(URL.java:366)
>    at java.net.URL.<init>(URL.java:329)
>    at java.net.URL.<init>(URL.java:321)
>    at java.net.URL.<init>(URL.java:252)
>    at java.net.URL.<init>(URL.java:275)
>    at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
>    at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown 
>Source)
>    at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
>    at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
>    at 
>org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
>Source)
>    at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
>    at org.apache.batik.bridge.URIResolver.getNode(Unknown Source)
>    at org.apache.batik.bridge.URIResolver.getElement(Unknown Source)
>    at 
>org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
>    at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown Source)
>    at 
>org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown
>
>Source)
>    at 
>org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
>Source)
>    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
>    at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
>    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
>    at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
>    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
>    at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
>    at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
>    at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown 
>Source)
>    at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown Source)
>    at org.apache.fop.svg.SVGArea.render(Unknown Source)
>    at 
>org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown 
>Source)
>    at org.apache.fop.layout.inline.ForeignObjectArea.render(Unknown Source)
>    at org.apache.fop.render.AbstractRenderer.renderLineArea(Unknown Source)
>    at org.apache.fop.layout.LineArea.render(Unknown Source)
>    at org.apache.fop.render.AbstractRenderer.renderBlockArea(Unknown 
>Source)
>    at org.apache.fop.layout.BlockArea.render(Unknown Source)
>    at 
>org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown Source)
>    at org.apache.fop.layout.ColumnArea.render(Unknown Source)
>    at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
>    at org.apache.fop.layout.SpanArea.render(Unknown Source)
>    at 
>org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(Unknown 
>Source)
>    at org.apache.fop.render.pdf.PDFRenderer.renderPage(Unknown Source)
>    at org.apache.fop.render.pdf.PDFRenderer.render(Unknown Source)
>    at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
>    at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
>    at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
>    at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
>    at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
>    at 
>org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
>    at 
>org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
>java:307)
>    at 
>org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
>684)
>    at 
>org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
>erImpl.java:2182)
>    at 
>org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
>678)
>    at 
>org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
>erImpl.java:2182)
>    at 
>org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
>Impl.java:2008)
>    at 
>org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
>ava:1171)
>    at 
>org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
>    at java.lang.Thread.run(Thread.java:536)
>
>Here is the start of the SVG element:
>
><fo:block>
>    <fo:instream-foreign-object height="480px" width="640px">
>    <svg fill-opacity="1" color-rendering="auto" 
>color-interpolation="auto" stroke="black" text-rendering="auto" 
>stroke-linecap="square" width="640" stroke-miterlimit="10" 
>shape-rendering="auto" stroke-opacity="1" fill="black" 
>stroke-dasharray="none" font-weight="normal" stroke-width="1" 
>height="480" font-family="'sansserif'" font-style="normal" 
>stroke-linejoin="miter" font-size="12" stroke-dashoffset="0" 
>image-rendering="auto">
><defs id="genericDefs"/>
>    <g>
>    <defs id="defs1">
>    <clipPath clipPathUnits="userSpaceOnUse" id="clipPath1">
><path d="M0 0 L640 0 L640 480 L0 480 L0 0 Z"/>
></clipPath>
>    <clipPath clipPathUnits="userSpaceOnUse" id="clipPath2">
><path d="M-209.20654296875 -460.421875 L430.79345703125 -460.421875 
>L430.79345703125 19.578125 L-209.20654296875 19.578125 L-209.20654296875 
>-460.421875 Z"/>
></clipPath>
>    <clipPath clipPathUnits="userSpaceOnUse" id="clipPath3">
><path d="M56.1474609375 44.82890701293945 L56.1474609375 431.84375 L631 
>431.84375 L631 44.82890701293945 Z"/>
></clipPath>
></defs>
>
></snip>
>
>Any help would be greatly appreciated.
>
>Irv
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall
neither be binding nor construed as constituting a commitment by the ECB except where provided
for in a written agreement.
>This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised
disclosure, use or dissemination, either in whole or in part, is prohibited.
>If you have received this e-mail in error, please notify the sender immediately via e-mail
and delete this e-mail from your system.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>  
>


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


Mime
View raw message