CONTENTS | PREV | NEXT Java Remote Method Invocation


A.1 Exceptions During Remote Object Export

When a remote object class is created that extends 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

Class of stub not found.

Name collision with class of same name as stub causes one of these errors:

  • Stub can't be instantiated.
  • Stub not of correct class.
  • Bad URL due to wrong codebase.

    Stub not of correct class.

    java.rmi.server.SkeletonNotFoundException

    Class of skeleton not found.

    Name collision with class of same name as skeleton causes one of these errors:

  • Skeleton can't be instantiated.
  • Skeleton not of correct class.
  • Bad URL due to wrong codebase.

    Skeleton not of correct class.

    java.rmi.server.ExportException

    The port is in use by another VM.



    CONTENTS | PREV | NEXT
    Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.