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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error Initializing RMI Server

843793Jun 24 2005 — edited Jun 25 2005
Hello,
I have a RMI server which I'm trying to run using the following command:

java -Djava.security.policy=D:\Tests\211\serverpolicy.txt server.LogServer

The problem is that I get the following exception:

RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: server.LogServer_Stub

I have the stub and skeleton files, so I don't know what the problem is. Maybe it has something to do with the fact that the files are in a package: Maybe they don't contain the code line "package server;" in them. Is there a way to check that? How do I make them contain the line? I searched the options for the rmic command but found nothing.

Can somebody help me please?
Thanks.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 23 2005
Added on Jun 24 2005
11 comments
333 views