This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: ConnectRefused in RMI
It's not a secret anymore!