You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/05/24 04:17:51 UTC
trouble with batik-1.0's transcoder
heya. i'm getting the following exception when i try to use batik's
transcoder:
java.lang.NoSuchMethodError
at
org.apache.batik.bridge.CSSUtilities.convertVisibility(CSSUtilities.j
ava:376)
at
org.apache.batik.bridge.SVGSVGElementBridge.createGraphicsNode(SVGSVG
ElementBridge.java:100)
at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:65)
at
org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTran
scoder.java:155)
at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstra
ctTranscoder.java:126)
at
org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.ja
va:210)
at
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:107)
at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTree
Handler.java:193)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1251)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3070)
at java.lang.Thread.run(Thread.java:484)
the svg page in question is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/">
<svg height="160" width="450"><defs><filter id="blur1"><feGaussianBlur stdDeviation="3"/></filter><filter id="blur2"><feGaussianBlur stdDeviation="1"/></filter></defs><g title="this is a tooltip"><rect height="80" width="400" ry="20" rx="20" y="30" x="30" style="fill:#0086B3;stroke:#000000;stroke-width:4;filter:url(#blur1);"/>
Hello
<text y="80" x="65" style="fill:#FFFFFF;font-size:24;font-family:TrebuchetMS-Bold;filter:url(#blur2);">This is my first Cocoon2 page!</text>
</g></svg>
am i doing something wrong?
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: trouble with batik-1.0's transcoder
Posted by Josh Fenlason <jf...@windchill.com>.
I had the same problem the other day. I had w3c.jar before the batik-ext.jar in my classpath. They have different versions of the CSSUtilities class. CSSUtilities.convertVisibility calls a method from CSSValue. The version from batik calls getCssValueType(), which is called getValueType() in the w3c.jar. I'm not sure which
version is the most up to date. I'm using the latest release of Batik, but I'm not sure how old my w3c.jar is. Anyhow, if I put batik-ext.jar in front of w3c.jar in the classpath, it fixed that problem. I suppose that it could cause more problems somewhere else. I haven't run into any though. Hope that helps.
,
Josh.
Donald Ball wrote:
> heya. i'm getting the following exception when i try to use batik's
> transcoder:
>
> java.lang.NoSuchMethodError
> at
> org.apache.batik.bridge.CSSUtilities.convertVisibility(CSSUtilities.j
> ava:376)
> at
> org.apache.batik.bridge.SVGSVGElementBridge.createGraphicsNode(SVGSVG
> ElementBridge.java:100)
> at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:65)
> at
> org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTran
> scoder.java:155)
> at
> org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstra
> ctTranscoder.java:126)
> at
> org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.ja
> va:210)
> at
> org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:107)
> at
> org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTree
> Handler.java:193)
> at
> org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
> rImpl.java:1251)
> at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
> :3070)
> at java.lang.Thread.run(Thread.java:484)
>
> the svg page in question is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/">
> <svg height="160" width="450"><defs><filter id="blur1"><feGaussianBlur stdDeviation="3"/></filter><filter id="blur2"><feGaussianBlur stdDeviation="1"/></filter></defs><g title="this is a tooltip"><rect height="80" width="400" ry="20" rx="20" y="30" x="30" style="fill:#0086B3;stroke:#000000;stroke-width:4;filter:url(#blur1);"/>
> Hello
>
> <text y="80" x="65" style="fill:#FFFFFF;font-size:24;font-family:TrebuchetMS-Bold;filter:url(#blur2);">This is my first Cocoon2 page!</text>
>
> </g></svg>
>
> am i doing something wrong?
>
> - donald
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org