File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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(
wood burning stoves
subject: ConnectRefused in RMI
Similar Threads
" Connection refused" got in Linux (RedHat 9)
rmi--about socket factory
RMI Exception
Urgent help on ConnectException required..
help jboss