Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.AbstractMethodError

 
apoorba mohapatra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone explain java.lang.AbstractMethodError with example?
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/AbstractMethodError.html
 
apoorba mohapatra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have gone through that link earlier, but I want example, so that I can understand it properly.
thanks
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic