|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejava.rmi
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
AnAccessException
is thrown by certain methods of thejava.rmi.Naming
class (specificallybind
rebind
andunbind
) and methods of thejava.rmi.activation.ActivationSystem
interface to indicate that the caller does not have permission to perform the action requested by the method call. If the method was invoked from a non-local host then anAccessException
is thrown. @version 1.9 0210 12/0203/0001 @author Ann Wollrath @author Roger Riggs @since JDK1.1 @see java.rmi.Naming @see java.rmi.activation.ActivationSystem
AnAlreadyBoundException
is thrown if an attempt is made to bind an object in the registry to a name that already has an associated binding. @version 1.9 0210 12/0203/0001 @since JDK1.1 @author Ann Wollrath @author Roger Riggs @see java.rmi.Naming#bind(String java.rmi.Remote) @see java.rmi.registry.Registry#bind(String java.rmi.Remote)
AConnectException
is thrown if a connection is refused to the remote host for a remote method call. @version 1.10 0211 12/0203/0001 @author Ann Wollrath @since JDK1.1
AConnectIOException
is thrown if anIOException
occurs while making a connection to the remote host for a remote method call. @version 1.9 0210 12/0203/0001 @author Ann Wollrath @since JDK1.1
AMarshalException
is thrown if ajava.io.IOException
occurs while marshalling the remote call header arguments or return value for a remote method call. AMarshalException
is also thrown if the receiver does not support the protocol version of the sender.If a
MarshalException
occurs during a remote method call the call may or may not have reached the server. If the call did reach the server parameters may have been deserialized. A call may not be retransmitted after aMarshalException
and reliably preserve "at most once" call semantics. @version 1.9 0210 12/0203/0001 @author Ann Wollrath @since JDK1.1
AMarshalledObject
contains a byte stream with the serialized representation of an object given to its constructor. Theget
method returns a new copy of the original object as deserialized from the contained byte stream. The contained object is serialized and deserialized with the same serialization semantics used for marshaling and unmarshaling parameters and return values of RMI calls: When the serialized form is created:
- classes are annotated with a codebase URL from where the class can be loaded (if available) and
- any remote object in the
MarshalledObject
is represented by a serialized instance of its stub.When copy of the object is retrieved (via the
get
method) if the class is not available locally it will be loaded from the appropriate location (specified the URL annotated with the class descriptor when the class was serialized.
MarshalledObject
facilitates passing objects in RMI calls that are not automatically deserialized immediately by the remote peer. @version 1.28 0230 12/0203/0001 @author Ann Wollrath @author Peter Jones @since 1.2
ANoSuchObjectException
is thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine. If aNoSuchObjectException
occurs attempting to invoke a method on a remote object the call may be retransmitted and still preserve RMI's "at most once" call semantics. ANoSuchObjectException
is also thrown by the methodjava.rmi.server.RemoteObject.toStub
and by theunexportObject
methods ofjava.rmi.server.UnicastRemoteObject
andjava.rmi.activation.Activatable
and @version 1.9 0210 12/0203/0001 @author Ann Wollrath @since JDK1.1 @see java.rmi.server.RemoteObject#toStub(Remote) @see java.rmi.server.UnicastRemoteObject#unexportObject(Remote boolean) @see java.rmi.activation.Activatable#unexportObject(Remote boolean)
ANotBoundException
is thrown if an attempt is made to lookup or unbind in the registry a name that has no associated binding. @version 1.9 0210 12/0203/0001 @since JDK1.1 @author Ann Wollrath @author Roger Riggs @see java.rmi.Naming#lookup(String) @see java.rmi.Naming#unbind(String) @see java.rmi.registry.Registry#lookup(String) @see java.rmi.registry.Registry#unbind(String)
AnRMISecurityException
signals that a security exception has occurred during the execution of one ofjava.rmi.RMISecurityManager
's methods. @version 1.11 0213 12/0203/0001 @author Roger Riggs @since JDK1.1 @deprecatednoUse java.lang.SecurityExceptionreplacementinstead. Application code should never directly reference this class andRMISecurityManager
no longer throws this subclass ofjava.lang.SecurityException
.
RMISecurityManager
provides an example security manager for use by RMI applications that use downloaded code. RMI's class loader will not download any classes from remote locations if no security manager has been set.RMISecurityManager
does not apply to applets which run under the protection of their browser's security manager.To use the
RMISecurityManager
in your application add the following statement to your code (it needs to be executed before RMI can download code from remote hosts so it most likely needs to appear in themain
of your application):System.setSecurityManager(new RMISecurityManager());@version 1.27 0228 12/0203/0001 @author Roger Riggs @author Peter Jones @since JDK1.1
TheRemote
interface serves to identify interfaces whose methods may be invoked from a non-local virtual machine. Any object that is a remote object must directly or indirectly implement this interface. Only those methods specified in a "remote interface" an interface that extendsjava.rmi.Remote
are available remotely.Implementation classes can implement any number of remote interfaces and can extend other remote implementation classes. RMI provides some convenience classes that remote object implementations can extend which facilitate remote object creation. These classes are
java.rmi.server.UnicastRemoteObject
andjava.rmi.activation.Activatable
.For complete details on RMI see the RMI Specification which describes the RMI API and system. @version 1.
10120212/0203/0001 @since JDK1.1 @author Ann Wollrath @see java.rmi.server.UnicastRemoteObject @see java.rmi.activation.Activatable
AClass RemoteException, constructor RemoteException()RemoteException
is the common superclass for a number of communication-related exceptions that may occur during the execution of a remote method call. Each method of a remote interface an interface that extendsjava.rmi.Remote
must listRemoteException
in its throws clause.As of release 1.4 this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "wrapped remote exception" that may be provided at construction time and accessed via the public #detail field is now known as the cause and may be accessed via the Throwable#getCause() method as well as the aforementioned "legacy field." @version 1.
17 0221 12/0203/0001 @author Ann Wollrath @since JDK1.1
Constructs aClass RemoteException, constructor RemoteException(String)RemoteException
with no specified detail message.@since JDK1.1
Constructs aClass RemoteException, constructor RemoteException(String, Throwable)RemoteException
with the specified detail message. @param s the detail message@since JDK1.1
Constructs aClass RemoteException, String getMessage()RemoteException
with the specified detail message and nested exception. @param s the detail message @param ex the nested exception@since JDK1.1
Returns the detail message including the message from the nested exception if there is one. @Class RemoteException, Throwable detailsincereturnJDK1.1the detail message including nested exception message if any
Nested Exception to hold wrapped remote exception.@serialThis
@sincefield predates the general-purpose exception chaining facility. The Throwable#getCause()JDK1method is now the preferred means of obtaining this information.1@serial
AServerError
is thrown as a result of a remote methodcall if theinvocation when anexecutionError
of the remoteis thrown whilemethodprocessing the invocation on the servermachine throws aeither while unmarshallingjava.lang.Error.theTheargumentsServerErrorexecutingcontains a nested exception which isthe remote method itself or marshalling thejava.langreturn value. AServerError
instance contains the originalError that occurred
during remoteasmethod executionits cause. @version 1.9110212/0203/0001 @author Ann Wollrath @since JDK1.1
AServerException
is thrown as a result of a remote methodcall ifinvocation when aRemoteException
is thrown while processing theexecutioninvocationofon the server either while unmarshalling the arguments executing the remote methodonitself or marshalling theserverreturnmachinevalue.throwsAaServerException
instance contains the originalRemoteException
that occurred as its cause. @version 1.9 0212 12/0203/0001 @author Ann Wollrath @since JDK1.1
AFrom a server executing on JDK 1.1 aServerRuntimeException
is thrown as a result of a remote methodcallinvocation when aRuntimeException
is thrownifwhile processing theexecutioninvocationofon the server either while unmarshalling the arguments executing the remote methodonitself or marshalling theserverreturnmachinevalue.throwsAaServerRuntimeException
instance contains the originalthat occurred as its cause.
java.lang.RuntimeExceptionA
ServerRuntimeException
is not thrown from servers executinginon the Java 2SDKplatform v1.2 or later versions. @version 1.12 0215 12/0203/0001 @author Ann Wollrath @since JDK1.1 @deprecated no replacement
AStubNotFoundException
is thrown if a valid stub class could not be found for a remote object when it is exported. AStubNotFoundException
may also be thrown when an activatable object is registered via thejava.rmi.activation.Activatable.register
method. @version 1.12 0213 12/0203/0001 @author Roger Riggs @since JDK1.1 @see java.rmi.server.UnicastRemoteObject @see java.rmi.activation.Activatable
AnUnexpectedException
is thrown if the client of a remote method call receives as a result of the call a checked exception that is not among the checked exception types declared in thethrows
clause of the method in the remote interface. @version 1.9 0210 12/0203/0001 @author Roger Riggs @since JDK1.1
AnUnknownHostException
is thrown if ajava.net.UnknownHostException
occurs while creating a connection to the remote host for a remote method call. @version 1.10 0211 12/0203/0001 @since JDK1.1
AnUnmarshalException
can be thrown while unmarshalling the parameters or results of a remote method call if any of the following conditions occur:@version 1.
- if an exception occurs while unmarshalling the call header
- if the protocol for the return value is invalid
- if a
java.io.IOException
occurs unmarshalling parameters (on the server side) or the return value (on the client side).- if a
java.lang.ClassNotFoundException
occurs during unmarshalling parameters or return values- if no skeleton can be loaded on the server-side; note that skeletons are required in the 1.1 stub protocol but not in the 1.2 stub protocol.
- if the method hash is invalid (i.e. missing method).
- if there is a failure to create a remote reference object for a remote object's stub when it is unmarshalled.
9 0210 12/0203/0001 @author Ann Wollrath @since JDK1.1