The exception that you claimed didn't happen will almost certainly be due to a ClassNotFoundException
mentioning the remote interface or the stub, or a class that they depend on. When you call list()
you're only retreiving Strings, not the class of the object, so there is no exception.
list()
and lookup()
both tell you whether the object is currently bound in the Registry. That doesn't by itself mean that the object still exists. You would have to execute a remote method on it to know that; and for that you would need the missing class(es).