As the title states, I get a java.lang.AbstractMethodError
on a method that is definitively implemented by my class. The complete error message is:
The problem was that the implementing class was not compiled correctly and the Ant script did not copy the correct class into the jar-file. I converted it to a maven project and now the method can be found.
if your implementing class's jar is not in the classpath or not sure
try like below code
YourInterfaceName obj = (YourInterfaceName)Class.forName
("yourPackageName.YourInterfaceImplClassName").newInstance();
Make sure you have the latest jar file in your class path not a older copy. If you are seeing this at run time this happens due to incompatible binaries
From Oracle java site
Thrown when an application tries to call an abstract method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled.
Link to Class AbstractMethodError
Also try the -U flag forces to update dependencies.
mvn clean install -U