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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to