Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMI server ClassNotFoundException

843793Jan 24 2005 — edited Nov 15 2007
I'm trying to resurrect some of my old RMI code and running into problems where the bind() throws a ClassNotFoundException for the remote interface. The old code ran on a older JDK and an older version of Windows.

Any help you could offer would be GREATLY appreciated.

I'm running on Windows XP Pro with 5.0 of the JDK. I've done my best to turn off any firewall, ani-virus, and Internet worm (Norton) checking.

I've tried to reduce it a trivial case:
* Message: an interface that extends Remote
* MessageImpl: a class that implements Message and extends
UnicatseRemoteObject.
* MessageServer: a class with a main method that:
a) creates an instance of MessageImpl
b) does a bind passing a name and the above instance.

All this is compiled and in a single jar.
I start the rmiregistry and run the Server.


However, I still get:

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Message
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2007
Added on Jan 24 2005
12 comments
373 views