UnicastRemoteObject
,
the object is exported, meaning it can receive calls from external Java virtual
machines and can be passed in an RMI call as either a parameter or return
value. An object can either be exported on an anonymous port or on a specified
port. For objects not extended from UnicastRemoteObject
, the
java.rmi.server.UnicastRemoteObject.exportObject
method is used
to explicitly export the object.
Exception | Context |
---|---|
java.rmi.StubNotFoundException |
|
java.rmi.server.SkeletonNotFoundException |
|
java.rmi.server.ExportException | The port is in use by another VM. |
Exception | Context |
---|---|
java.rmi.UnknownHostException | Unknown host. |
java.rmi.ConnectException | Connection refused to host. |
java.rmi.ConnectIOException | I/O error creating connection. |
java.rmi.MarshalException | I/O error marshaling transport header, marshaling call header, or marshaling arguments. |
java.rmi.NoSuchObjectException | Attempt to invoke a method on an object that is no longer available. |
java.rmi.StubNotFoundException | Remote object not exported. |
Exception | Context |
---|---|
java.rmi.UnmarshalException |
|
java.rmi.UnexpectedException | An exception not mentioned in the method signature occurred, including runtime exceptions on the client. An exception object contains the actual exception. |
java.rmi.ServerError | Any error that occurs while the server is executing a remote method. |
java.rmi.ServerException | Any remote exception that occurs while the server is executing a remote method. For examples, see Possible Causes of java.rmi.ServerException. |
java.rmi.ServerRuntimeException | Any runtime exception that occurs while the server is executing a method, even if the exception is in the method signature. This exception object contains the underlying exception. |
java.rmi.ServerException
; that is the
java.rmi.ServerException
contains the original exception for the client to
extract. These exceptions are wrapped by ServerException
so that the client
will know that its own remote method invocation on the server did not fail, but
that a secondary remote method invocation made by the server failed.
Exception | Context |
---|---|
java.rmi.server.SkeletonMismatchException | Hash mismatch of stub and skeleton. |
java.rmi.UnmarshalException | I/O error unmarshaling call header. I/O error unmarshaling arguments. |
java.rmi.MarshalException | Protocol error marshaling return. |
java.rmi.RemoteException | Method number out of range due to corrupted stream. |
java.rmi.Naming
class and the java.rmi.registry.Registry
interface.
Exception | Context |
---|---|
java.rmi.AccessException | Operation disallowed. The registry restricts bind, rebind, and unbind to the same host. The lookup operation can originate from any host. |
java.rmi.AlreadyBoundException | Attempt to bind a name that is already bound. |
java.rmi.NotBoundException | Attempt to look up a name that is not bound. |
java.rmi.UnknownHostException | Attempt to contact a registry on an unknown host. |
Exception | Context |
---|---|
java.rmi.RMISecurityException | A security exception that is thrown by the RMISecurityManager. |
java.rmi.server.ServerCloneException | Clone failed. |
java.rmi.server.ServerNotActiveException | Attempt to get the client host via the RemoteServer.getClientHost method when the remote server is not executing in a remote method. |
java.rmi.server.SocketSecurityException | Attempt to export object on an illegal port. |