This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes ConnectRefused in RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "ConnectRefused in RMI" Watch "ConnectRefused in RMI" New topic

ConnectRefused in RMI

Chandar S Vel

Joined: Aug 11, 2002
Posts: 10
I am trying to "lookup" the server from the client through Rmiregistry. I was getting a problem when i try to do lookup. Here is the stacktrace
I rant the program like this
java com.rmi.graphservice.RmiClient
java.policy had the following permission
..... "", "accept,connect,lis
.... is the domain for both client and the server.
Exception in thread "main" java.rmi.ConnectException: Connection refused to host:; nested exception is: Connection refused Connection refused
at Method)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
at sun.rmi.transport.tcp.TCPChannel.createConnection(
at sun.rmi.transport.tcp.TCPChannel.newConnection(
at sun.rmi.server.UnicastRef.newCall(
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.rmi.graphservice.RmiClient.main(
I agree. Here's the link:
subject: ConnectRefused in RMI
It's not a secret anymore!