Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What am I doing wrong ????

 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I start my server code with the following command:
java Djava.rmi.server.codebase=file:/c:\classes/ -Djava.security.policy=c:\classes\test.policy suncertify.server.RemoteDataImpl db.db
And then I receive this exception stack trace.

RemoteDataImpl exception: Server RemoteException; nested exception is:
java.rmi.AccessException: Registry.rebind 127.0.0.1/127.0.0.1 != SESTOW9100/172.18.4.223
java.rmi.ServerException: Server RemoteException; nested exception is:
java.rmi.AccessException: Registry.rebind 127.0.0.1/127.0.0.1 != SESTOW9100/172.18.4.223
java.rmi.AccessException: Registry.rebind 127.0.0.1/127.0.0.1 != SESTOW9100/172.18.4.223 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at suncertify.server.RemoteDataImpl.main(RemoteDataImpl.java:172)
Please help me, is it a case of not being able to bind to localhost while connected to my office LAN ?
[ April 05, 2002: Message edited by: Nigel Browne ]
 
mukund kulkarni
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you started the RMI registry or you are doing it programatically.?
pl post the code segment where you are getting htis error.
cheers
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic