xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Pietsch <and...@pietschy.com>
Subject EmptyStackException when processing embedded svg flowRoot element
Date Tue, 18 Aug 2009 04:40:38 GMT
Hi there,

I'm attempting to embed some SVG containing some flowing text and am getting
a weird EmptyStackException.  Other svg code (rect, text etc) are working
fine.

FOP: 0.95
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)

<fo:instream-foreign-object>
<svg:svg width="165mm" height="20mm" version="1.2">
   <svg:flowRoot>
      <svg:flowRegion>
         <svg:rect x="0" y="0" width="50" height="20"/>
      </svg:flowRegion>
      <svg:flowDiv>
         <svg:flowSpan>Blah blah blah blah</svg:flowSpan>
      </svg:flowDiv>
   </svg:flowRoot>
</svg:svg>
</fo:instream-foreign-object>

Exception:
Aug 18, 2009 2:32:07 PM org.apache.fop.fo.FOTreeBuilder fatalError
SEVERE: javax.xml.transform.TransformerException:
java.util.EmptyStackException
Aug 18, 2009 2:32:07 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException: java.util.EmptyStackException
        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)

---------

; SystemID:
file:///Users/andrew/ieca/homestay/gwt/src/main/resources/pdf/client-report-fo-dev.xsl
javax.xml.transform.TransformerException: java.util.EmptyStackException
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2405)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251)
        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.util.EmptyStackException
        at java.util.Stack.peek(Stack.java:79)
        at java.util.Stack.pop(Stack.java:61)
        at org.apache.xml.utils.DOMBuilder.endElement(DOMBuilder.java:428)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
        at
org.apache.fop.util.DelegatingContentHandler.endElement(DelegatingContentHandler.java:189)
        at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)
        at
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
        ... 9 more


Any ideas?

Thanks
Andrew

Mime
View raw message