Thanks, Maerki.

I use batik.jar that comes with the FOP. I tried running the
Sample doucment on the command line on the linux machine? The result is the
same: 
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser

[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] [1]
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.batik.dom.AbstractAttr: method isReadonly()Z not found
        at org.apache.batik.dom.GenericAttr.<init>(GenericAttr.java:42)
        at org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:177)

I am a new graduate from school and programming experience is kind of poor.
I don't know how to enable classloading verbosity. Help me!

Thanks

Judy Cai

-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 2:26 PM
To: [EMAIL PROTECTED]
Subject: Re: embedding fop0.20.5 working on jdk1.3.1-linux?


On 16.09.2003 19:47:03 Cai, Judy wrote:
> I tried to trace the exception stack. But I still don't know where is
going
> wrong. Is the problem is batik.jar or something else. Could you give me
some
> hint? Here is the output:
> 
> root cause 
> 
> java.lang.NoSuchMethodError: org.apache.batik.dom.AbstractAttr: method
> isReadonly()Z not found
>       at org.apache.batik.dom.GenericAttr.(GenericAttr.java:42)
>       at org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:177)

Obviously, this has something to do with Batik, right? Have you checked
that you're using the right batik.jar (the one that comes with the FOP
version you're using) and that no other batik.jar is somewhere in the
classpath. You could enable classloading verbosity (-verbos:class) to
find out where the classes are loaded from. Have you tried running the
same document on the command line on the linux machine?

> AbstractElement.setUnspecifiedAttribute

This method may (!) indicate that you have an unsupported attribute
somewhere in your SVG code. I'm not sure. Try commenting out all SVG
elements and see if that changes anything.


Jeremias Maerki


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


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

Reply via email to