| CONTENTS | PREV | NEXT | Java Remote Method Invocation | 
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 | 
|---|---|
| 
 | Class of stub not found. Name collision with class of same name as stub causes one of these errors: 
 Bad URL due to wrong codebase. Stub not of correct class. | 
| 
 note: this exception is deprecated as of Java 2 SDK, Standard Edition, v1.2 | Class of skeleton not found. Name collision with class of same name as skeleton causes one of these errors: 
 Bad URL due to wrong codebase. Skeleton not of correct class. | 
| 
 | The port is in use by another VM. |