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 Jeremias Maerki <de...@greenmail.ch> on 2002/11/21 22:33:23 UTC

Re: AbstractMethodError when trying to extend FOP

Turn on debug info in the build.xml and recompile FOP. Having line
numbers will make it a lot easier for you to track down the problem.
Looking at the source of Driver I guess you don't have a method
addToBuilder(FOTreeBuilder) in your ElementMapping implementation.

On 21.11.2002 22:25:24 Raffi Simon wrote:
> I follow the directions to extend FOP, I created a jar file with my classes and place a org.apache.fop.fo.ElementMapping file in the jar and when I run the FOP with my custom element I get the following.
> [INFO] FOP 0.20.4rc
> Exception in thread "main" java.lang.AbstractMethodError
>         at org.apache.fop.apps.Driver.addElementMapping(Unknown Source)
>         at org.apache.fop.apps.Driver.addElementMapping(Unknown Source)
>         at org.apache.fop.apps.Driver.setupDefaultMappings(Unknown Source)
>         at org.apache.fop.apps.Driver.<init>(Unknown Source)
>         at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
>         at org.apache.fop.apps.Fop.main(Unknown Source)
> Can anyone help?
> -Raf


Jeremias Maerki


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


Re: AbstractMethodError when trying to extend FOP

Posted by Jeremias Maerki <de...@greenmail.ch>.
AbstractMethodError means that a method on a class is called that is
abstract. Compare your implementation with
org.apache.fop.svg.SVGElementMapping. addToBuilder is just plain public
and that's how it should be. Going to bed now...back in 9 hours.

On 21.11.2002 22:51:38 Raffi Simon wrote:
> as a test, I took the ExtensionElementMapping.java file that comes with the sourse files and I added a system.out.println to the code and compiled it and placed it in the classpath, I still get the same exception. I do not think this has to do with my implementation.


Jeremias Maerki


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