J2ME RMI Profile

Uses of Class
java.rmi.RemoteException

Packages that use RemoteException
java.rmi Provides the RMI package. 
java.rmi.activation Provides support for RMI Object Activation. 
java.rmi.dgc Provides classes and interface for RMI distributed garbage-collection (DGC). 
java.rmi.registry Provides a class and two interfaces for the RMI registry. 
java.rmi.server Provides classes and interfaces for supporting the unicast server side of RMI. 
 

Uses of RemoteException in java.rmi
 

Subclasses of RemoteException in java.rmi
 interface AccessException
          An AccessException is thrown by certain methods of the java.rmi.Naming class (specifically bind, rebind, and unbind) and methods of the java.rmi.activation.ActivationSystem interface to indicate that the caller does not have permission to perform the action requested by the method call.
 interface ConnectException
          A ConnectException is thrown if a connection is refused to the remote host for a remote method call.
 interface ConnectIOException
          A ConnectIOException is thrown if an IOException occurs while making a connection to the remote host for a remote method call.
 interface MarshalException
          A MarshalException is thrown if a java.io.IOException occurs while marshalling the remote call header, arguments or return value for a remote method call.
 interface NoSuchObjectException
          A NoSuchObjectException is thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.
 interface ServerError
          A ServerError is thrown as a result of a remote method call if the execution of the remote method on the server machine throws a java.lang.Error.
 interface ServerException
          A ServerException is thrown as a result of a remote method call if the execution of the remote method on the server machine throws a RemoteException.
 interface StubNotFoundException
          A StubNotFoundException is thrown if a valid stub class could not be found for a remote object when it is exported.
 interface UnexpectedException
          An UnexpectedException 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 the throws clause of the method in the remote interface.
 interface UnknownHostException
          An UnknownHostException is thrown if a java.net.UnknownHostException occurs while creating a connection to the remote host for a remote method call.
 interface UnmarshalException
          An UnmarshalException can be thrown while unmarshalling the parameters or results of a remote method call if any of the following conditions occur: 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).
 

Methods in java.rmi that throw RemoteException
static Remote Naming.lookup(java.lang.String name)
          Returns a reference, a stub, for the remote object associated with the specified name.
static void Naming.bind(java.lang.String name, Remote obj)
          Binds the specified name to a remote object.
static void Naming.unbind(java.lang.String name)
          Destroys the binding for the specified name that is associated with a remote object.
static void Naming.rebind(java.lang.String name, Remote obj)
          Rebinds the specified name to a new remote object.
static java.lang.String[] Naming.list(java.lang.String name)
          Returns an array of the names bound in the registry.
 

Uses of RemoteException in java.rmi.activation
 

Subclasses of RemoteException in java.rmi.activation
 interface ActivateFailedException
          This exception is thrown by the RMI runtime when activation fails during a remote call to an activatable object.
 

Methods in java.rmi.activation that throw RemoteException
 MarshalledObject Activator.activate(ActivationID id, boolean force)
          Activate the object associated with the activation identifier, id.
 Remote ActivationID.activate(boolean force)
          Activate the object for this id.
 

Uses of RemoteException in java.rmi.dgc
 

Methods in java.rmi.dgc that throw RemoteException
 Lease DGC.dirty(ObjID[] ids, long sequenceNum, Lease lease)
          The dirty call requests leases for the remote object references associated with the object identifiers contained in the array 'ids'.
 void DGC.clean(ObjID[] ids, long sequenceNum, VMID vmid, boolean strong)
          The clean call removes the 'vmid' from the reference list of each remote object indicated in 'id's.
 

Uses of RemoteException in java.rmi.registry
 

Methods in java.rmi.registry that throw RemoteException
 Remote Registry.lookup(java.lang.String name)
          Returns a reference, a stub, for the remote object associated with the specified name.
 void Registry.bind(java.lang.String name, Remote obj)
          Binds the specified name to a remote object.
 void Registry.unbind(java.lang.String name)
          Destroys the binding for the specified name that is associated with a remote object.
 void Registry.rebind(java.lang.String name, Remote obj)
          Rebinds the specified name to a new remote object.
 java.lang.String[] Registry.list()
          Returns an array of the names bound in the registry.
static Registry LocateRegistry.getRegistry()
          Returns a reference to the the remote object Registry for the local host on the default registry port of 1099.
static Registry LocateRegistry.getRegistry(int port)
          Returns a reference to the the remote object Registry for the local host on the specified port.
static Registry LocateRegistry.getRegistry(java.lang.String host)
          Returns a reference to the remote object Registry on the specified host on the default registry port of 1099.
static Registry LocateRegistry.getRegistry(java.lang.String host, int port)
          Returns a reference to the remote object Registry on the specified host and port.
static Registry LocateRegistry.getRegistry(java.lang.String host, int port, RMIClientSocketFactory csf)
          Returns a locally created remote reference to the remote object Registry on the specified host and port.
static Registry LocateRegistry.createRegistry(int port)
          Creates and exports a Registry on the local host that accepts requests on the specified port.
static Registry LocateRegistry.createRegistry(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
          Creates and exports a Registry on the local host that uses custom socket factories for communication with that registry.
 

Uses of RemoteException in java.rmi.server
 

Subclasses of RemoteException in java.rmi.server
 interface ExportException
          An ExportException is a RemoteException thrown if an attempt to export a remote object fails.
 interface SocketSecurityException
          A SocketSecurityException is thrown during remote object export if the code exporting the remote object (either by construction or by explicit call to the exportObject method of UnicastRemoteObject or java.rmi.activation.Activatable) does not have permission to create a java.net.ServerSocket on the port number specified during remote object export.
 

Methods in java.rmi.server that throw RemoteException
static RemoteStub UnicastRemoteObject.exportObject(Remote obj)
          Export the remote object to make it available to receive incoming calls, using an anonymous port.
static Remote UnicastRemoteObject.exportObject(Remote obj, int port)
          Export the remote object to make it available to receive incoming calls, using the particular supplied port.
static Remote UnicastRemoteObject.exportObject(Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
          Export the remote object to make it available to receive incoming calls, using a transport specified by the given socket factory.
 

Constructors in java.rmi.server that throw RemoteException
UnicastRemoteObject.UnicastRemoteObject()
          Create and export a new UnicastRemoteObject object using an anonymous port.
UnicastRemoteObject.UnicastRemoteObject(int port)
          Create and export a new UnicastRemoteObject object using the particular supplied port.
UnicastRemoteObject.UnicastRemoteObject(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
          Create and export a new UnicastRemoteObject object using the particular supplied port and socket factories.
 


J2ME RMI Profile

Java is a trademark or registred trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo, Alto, California, 94303, U.S.A All Rights Reserved. < /font >