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.UnmarshalException
|
|
java.rmi.UnexpectedException
|
An exception not in the method signature occurred, including runtime exceptions on the client. This exception object contains the underlying exception.
|
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
|
Any remote exception that occurs while the server is executing a remote method. See Section A.3.1 for examples.
|
java.rmi.server.ServerError
|
Any error that occurs while the server is executing a remote method.
|
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.ServerCloneException
|
Clone failed
|