AbstractMethodError
843793Feb 2 2004 — edited Feb 4 2004Hi folks,
I'm getting some strange error message. I have an AbstractMethodError occuring on an RMI server. According to the docs:, an AbstractMethodError is ... " 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."
The problem occured when I added a new method to my Remote interface :
public InetAddress getHostAddress() throws RemoteException;
Which was implemented as :
public InetAddress getHostAddress() throws RemoteException {
return myHost;
}
On the client there is a simple method call which calls the method getHostAddress()
All classes are recently compiled (each comilation rebuilds the project using Ant) and rmic compiles all the possible classes. However, I still pick up this error:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.AbstractMethodError: org.am.apps.ant.AbstractHive_Stub.getHostAddress()Ljava/net/InetAddress;
Has anyone any ideas?
Cheers