Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AbstractMethodError

843793Feb 2 2004 — edited Feb 4 2004
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2004
Added on Feb 2 2004
3 comments
184 views