xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Romelfanger <f...@stsci.edu>
Subject [BUG] using SVG causes exception
Date Tue, 26 Dec 2000 18:55:04 GMT
I added the following to an existing fo document to replace a gif line
drawing with an svg line drawing:

                <fo:instream-foreign-object>
                  <svg:svg width="48" height="67">
                    <svg:g style="fill:none; stroke:black; stroke-width:5">
                      <svg:polyline points="5,46.5 1.5,46.5 1.5,1.5 46.5,1.5 46$
                      <svg:circle cx="24" cy="46.5" r="19" />  
                      <svg:circle cx="24" cy="46.5" r="9" />
                      <svg:circle cx="24" cy="-9" r="23" />
                      <svg:circle cx="24" cy="28.2" r="11.25" />
                    </svg:g>  
                  </svg:svg>
                </fo:instream-foreign-object>

I got the following exception:

Exception in thread "main" java.lang.IncompatibleClassChangeError
        at org.apache.fop.dom.svg.SVGElementImpl.getPresentationAttribute(SVGElementImpl.java:124)
        at org.apache.fop.render.pdf.SVGRenderer.applyStyle(SVGRenderer.java:1756)
        at org.apache.fop.render.pdf.SVGRenderer.renderElement(SVGRenderer.java:1980)
        at org.apache.fop.render.pdf.SVGRenderer.renderSVG(SVGRenderer.java:143)
        at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:489)
        at org.apache.fop.dom.svg.SVGArea.render(SVGArea.java:106)
        at org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRenderer.java:450)
        at org.apache.fop.layout.ForeignObjectArea.render(ForeignObjectArea.java:95)
        at org.apache.fop.render.pdf.PDFRenderer.renderBlockArea(PDFRenderer.java:343)
        at org.apache.fop.layout.BlockArea.render(BlockArea.java:106)
        at org.apache.fop.render.pdf.PDFRenderer.renderAreaContainer(PDFRenderer.java:276)
        at org.apache.fop.layout.AreaContainer.render(AreaContainer.java:149)
        at org.apache.fop.render.pdf.PDFRenderer.renderAreaContainer(PDFRenderer.java:276)
        at org.apache.fop.layout.AreaContainer.render(AreaContainer.java:149)
        at org.apache.fop.render.pdf.PDFRenderer.renderAreaContainer(PDFRenderer.java:276)
        at org.apache.fop.layout.AreaContainer.render(AreaContainer.java:149)
        at org.apache.fop.render.pdf.PDFRenderer.renderAreaContainer(PDFRenderer.java:276)
        at org.apache.fop.layout.AreaContainer.render(AreaContainer.java:149)
        at org.apache.fop.render.pdf.PDFRenderer.renderBlockArea(PDFRenderer.java:343)
        at org.apache.fop.layout.BlockArea.render(BlockArea.java:106)
        at org.apache.fop.render.pdf.PDFRenderer.renderAreaContainer(PDFRenderer.java:276)
        at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:627)
        at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:173)

I downloaded ant, and tried the SVG example that came with FOP and got a
similiar exception:

/home/fred/fop/svg/build.xml:105: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: java.lang.IncompatibleClassChangeError
        at org.apache.fop.dom.svg.SVGElementImpl.getPresentationAttribute(SVGElementImpl.java:124)
        at org.apache.fop.render.pdf.SVGRenderer.applyStyle(SVGRenderer.java:1712)
        at org.apache.fop.render.pdf.SVGRenderer.renderElement(SVGRenderer.java:1980)
        at org.apache.fop.render.pdf.SVGRenderer.renderSVG(SVGRenderer.java:143)
        at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:489)
        at org.apache.fop.dom.svg.SVGArea.render(SVGArea.java:106)
        at org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRenderer.java:450)
        at org.apache.fop.layout.ForeignObjectArea.render(ForeignObjectArea.java:95)
        at org.apache.fop.render.pdf.PDFRenderer.renderBlockArea(PDFRenderer.java:343)
        at org.apache.fop.layout.BlockArea.render(BlockArea.java:106)
        at org.apache.fop.render.pdf.PDFRenderer.renderAreaContainer(PDFRenderer.java:276)
        at org.apache.fop.layout.AreaContainer.render(AreaContainer.java:149)
        at org.apache.fop.render.pdf.PDFRenderer.renderAreaContainer(PDFRenderer.java:276)
        at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:627)
        at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:173)
        at org.apache.fop.apps.Driver.render(Driver.java:444)
        at Fop.execute(Fop.java:201)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:82)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:122)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java:532)
        at org.apache.tools.ant.Project.executeTargets(Project.java:506)
        at org.apache.tools.ant.Main.runBuild(Main.java:420)
        at org.apache.tools.ant.Main.main(Main.java:149)



Mime
View raw message