java.rmi.NoSuchObjectException: no such object in table

Keep a strong reference to the object that implements the java.rmi.Remote interface so that it remains reachable, i.e. ineligible for garbage collection. Below is a short program that demonstrates a java.rmi.NoSuchObjectException. The script is self-contained, creating an RMI registry as well as a “client” and a “server” in a single JVM. Simply copy this code … Read more

java.rmi.ServerException: RemoteException occurred in server thread (ClassNotFoundException)

There are four cases of this exception. When exporting: you didn’t run ‘rmic’ and you didn’t take the steps described in the preamble to the Javadoc for UnicastRemoteObject to make it unnecessary. When binding: the Registry doesn’t have the stub or the remote interface or something they depend on on its classpath. when looking up: … Read more