File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes RMI server startup exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "RMI server startup exception" Watch "RMI server startup exception" New topic

RMI server startup exception

adithya narayan
Ranch Hand

Joined: Jan 05, 2009
Posts: 79


I have written a simple RMI program and compiled it using JDK 1.6_14. I am starting the rmi registry explicitly on a particular port which works properly. When i proceed to start the server where i am binding the remote object the program fails:

Here are the programs i have written:

Remote Interface

RemoteImpl class

RemoteServer class

and the client

And the exception i am getting is as follows:

Another question i had was after Java 2 rmic creates only stubs but after reading the following documentation:

I feel that we need not even create the stubs for client using 'rmic' command. Am i right ? Its all reflection i guess ?

Or if we have to create stubs then i guess we need to supply the created 'stub' to the client ?
Please correct me if i am missing something.

I agree. Here's the link:
subject: RMI server startup exception
It's not a secret anymore!