Movatterモバイル変換


[0]ホーム

URL:


CONTENTS |PREV |NEXTJava Remote Method Invocation


A.1 Exceptions During RemoteObject Export

When a remote object classis created that extendsUnicastRemoteObject, theobject is exported, meaning it can receive calls from external Javavirtual machines and can be passed in an RMI call as either aparameter or return value. An object can either be exported on ananonymous port or on a specified port. For objects not extendedfromUnicastRemoteObject, thejava.rmi.server.UnicastRemoteObject.exportObjectmethod 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 ofthese 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

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 ofthese 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

[8]ページ先頭

©2009-2025 Movatter.jp