This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Remote Registry Problem  RSS feed

 
Vrishal Likhite
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everyone, I have a problem accessing a remote registry in rmi
i am using jdk1.5; The error that i am getting is given below. Hope to get a solution

**************************************************************************
Error
**************************************************************************

Exception in MyRmiServer:::::::::::RemoteException occurred in server thread; ne
sted exception is:
java.rmi.AccessException: Registry.Registry.rebind disallowed; origin /1
0.225.1.119 is non-local host
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.AccessException: Registry.Registry.rebind disallowed; origin /1
0.225.1.119 is non-local host
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:352
)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:536)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n 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 RmiServer.run(RmiServer.java:46)
at java.lang.Thread.run(Unknown Source)
Caused by: java.rmi.AccessException: Registry.Registry.rebind disallowed; origin
/10.225.1.119 is non-local host
at sun.rmi.registry.RegistryImpl.checkAccess(RegistryImpl.java:223)
at sun.rmi.registry.RegistryImpl.rebind(RegistryImpl.java:152)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342
)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:536)

***************************************************************************
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our "Distributed Java" forum.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rmiregistry doesn't accept non-local calls to bind or rebind. Without writing your own RmiRegistry implementation, you can't do this.

If you need a technology that does remote binds, and don't want to re-implement RmiRegistry, one technology to look at is Jini.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!