xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Kormann <tkorm...@ilog.fr>
Subject Re: Batik interference with FOP
Date Mon, 28 Jan 2002 14:04:44 GMT
On Saturday 19 January 2002 20:05, Mikael Ståldal wrote:
> I'm trying to embeed both Batik and FOP into an application, and there
> seems to be some strange interference between them. Try this simple
> example:
>
> prompt>java -classpath batik-rasterizer.jar;fop.jar
> org.apache.batik.apps.rasterizer.Main batikLogo.svg
>
> and you will get this error:
>
> Exception in thread "main" java.lang.AbstractMethodError
>          at
> org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation.<init>(Unknown
> Source) at
> org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation.<clinit>(Unknown
> Source)
>          at
> org.apache.batik.transcoder.image.ImageTranscoder.<init>(Unknown Source)
>          at org.apache.batik.transcoder.image.PNGTranscoder.<init>(Unknown
> Source)
>          at
> org.apache.batik.apps.rasterizer.DestinationType.getTranscoder(Unknown
> Source) at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown
> Source)
>          at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
>          at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
>
> When changing the order between Batik and FOP in CLASSPATH, this error goes
> away, but then I get another error in my application:
>
> Exception in thread "main" java.lang.NoSuchMethodError
>          at
> org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation.<init>(Unknown
> Source) at
> org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation.<clinit>(Unknown
> Source)
>
> When leaving out FOP from the CLASSPATH, everything works fine.
>
> I'm using Batik 1.1.1 and FOP 0.19.0.


check your classpath and put batik jar files first. It seems that FOP 
includes old DOM bindings.


Thierry.


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


Mime
View raw message