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!

RemoteException LOCALHOST is non-local host

843793Oct 7 2005 — edited Oct 8 2005
Hello RMI gurus,

I am trying to run an example RMI application to get a better understanding of how RMI works, but I have encountered this problem. The error I am getting is this:

Error: RemoteException occured in server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.rebind disallowed;
origin
LOCALHOST/127.0.0.1 is non-local host

I have the rmiregistry running on the default port on the same system that I am trying to run the server part of the program, and am using Java 1.3. Here is how I start the program:
java -Djava.rmi.server.codebase=file:///java/verify/ -cp /java/verify FibonacciServer
Also, I bind my object to rmi with this call in the FibonacciServer class:
Naming.bind("fibonacci", f);

I am guessing it is choking on this.

Any way...thanks in advance for any help with this!

C.M.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2005
Added on Oct 7 2005
1 comment
1,800 views