File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes java.lang.AbstractMethodError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.AbstractMethodError" Watch "java.lang.AbstractMethodError" New topic


apoorba mohapatra

Joined: Mar 28, 2005
Posts: 7
Can anyone explain java.lang.AbstractMethodError with example?
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
This type of error is thrown when a application tries to call a abstract method. Once I got this type of error when i changed the signature of bean and redeployed it the app server. It got solved after undeploying the existing bean & deploying the new version instead of redeploying directly.

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
marc weber

Joined: Aug 31, 2004
Posts: 11343

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
apoorba mohapatra

Joined: Mar 28, 2005
Posts: 7
I have gone through that link earlier, but I want example, so that I can understand it properly.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
I've only ever encountered it once when I had changed an abstract class but forgotten to deploy the changed version of a derived class to the web application.
The derived class misses a method that is called so the call is relegated to the mother class in which it is abstract and thus can never be called.

Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
You would have to compile the class file in a development environment where the class you are calling is not abstract and then move to a production environment where the called class is abstract.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
I agree. Here's the link:
subject: java.lang.AbstractMethodError
It's not a secret anymore!