You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sunil_Bhandary <Su...@satyam.com> on 2006/04/21 13:39:33 UTC

Error while generating the PDF Document - Please help

Hi All,
 
I am getting the following error in my application when tried to generate the PDF document using FOP.
 
java.lang.AbstractMethodError: org/apache/fop/svg/SVGElementMapping.addToBuilder

at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)

at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)

at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:253)

at org.apache.fop.apps.Driver.<init>(Driver.java:189)

I am using the FOP version 0.20.5.

I have the following JARs in my application classpath which came along with FOP:

/WEB-INF/lib/avalon-framework-cvs-20020806.jar"/>
/WEB-INF/lib/batik.jar"/>
/WEB-INF/lib/fop.jar"/>
/WEB-INF/lib/xalan-2.4.1.jar"/>
/WEB-INF/lib/xercesImpl-2.2.1.jar"/>
/WEB-INF/lib/xml-apis.jar"/>

I am facing this problem when I migrated my application from IBM WSAD5.1 to RAD6.0

Is it due to a change in JDK version? Can fop 0.20.5 run without any problem with JDK1.4?

I have attached the FO file for your information. Any problems with the XSL template?

I didn't have this problem when I was using WSAD5.1 with jdk1.3.

Is there any classpath conflict? I am not able to make out. 

I am facing this problem from the last 7 days. Kindly help.

Thanks,

Sunil

 

 

 



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

RE: Error while generating the PDF Document - Please help

Posted by Sunil_Bhandary <Su...@satyam.com>.
Hi Pietschmann,
 
Thanks for the information.
I will try to run the FOP with my actual Java environment and will also check the classpath settings in the IDE.
I will let you know the results.
 
Regards,
Sunil
 

________________________________

From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Sent: Sun 4/23/2006 5:12 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error while generating the PDF Document - Please help



Sunil_Bhandary wrote:
> I am getting the following error in my application when tried to generate the PDF document using FOP.
> java.lang.AbstractMethodError: org/apache/fop/svg/SVGElementMapping.addToBuilder
> at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
[snip]

SVGElementMapping.addToBuilder is definitely not an abstract method,
and the line numbers in Driver.java are way off compared to the
actual file in 0.20.5.

Try running the FOP command line application from a shell, with
your actual Java environment. FOP should run fine Java 1.4 in
general.

You should double check the classpath settings in the IDE, check
whether there aren't modified Driver.Java and/or SVGElementMapping
file sin the project or imported from another project, and check
whether the IDE has known classloader bugs.

J.Pietschmann

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






DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

RE: Error while generating the PDF Document - Please help

Posted by Sunil_Bhandary <Su...@satyam.com>.
Hi Pietschmann,
 
The problem is resolved now.
The problem was with the classloader settings of the IDE.
Thanks a ton.
 
Regards,
Sunil

________________________________

From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Sent: Sun 4/23/2006 5:12 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Error while generating the PDF Document - Please help



Sunil_Bhandary wrote:
> I am getting the following error in my application when tried to generate the PDF document using FOP.
> java.lang.AbstractMethodError: org/apache/fop/svg/SVGElementMapping.addToBuilder
> at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
[snip]

SVGElementMapping.addToBuilder is definitely not an abstract method,
and the line numbers in Driver.java are way off compared to the
actual file in 0.20.5.

Try running the FOP command line application from a shell, with
your actual Java environment. FOP should run fine Java 1.4 in
general.

You should double check the classpath settings in the IDE, check
whether there aren't modified Driver.Java and/or SVGElementMapping
file sin the project or imported from another project, and check
whether the IDE has known classloader bugs.

J.Pietschmann

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






DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

Re: Error while generating the PDF Document - Please help

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Sunil_Bhandary wrote:
> I am getting the following error in my application when tried to generate the PDF document using FOP.
> java.lang.AbstractMethodError: org/apache/fop/svg/SVGElementMapping.addToBuilder
> at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
[snip]

SVGElementMapping.addToBuilder is definitely not an abstract method,
and the line numbers in Driver.java are way off compared to the
actual file in 0.20.5.

Try running the FOP command line application from a shell, with
your actual Java environment. FOP should run fine Java 1.4 in
general.

You should double check the classpath settings in the IDE, check
whether there aren't modified Driver.Java and/or SVGElementMapping
file sin the project or imported from another project, and check
whether the IDE has known classloader bugs.

J.Pietschmann

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