Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.rmi.ConnectException: Connection refused to host

843810Jul 25 2005 — edited May 3 2009
Hi,
I am trying to get a RMI server running. I am using a windows 2000 client. I started with "start rmiserver". When I am trying to run my service by calling "java AccountServerImpl", I am getting the following exceptioion. Can someone help me find where I am missing ?.

java.rmi.ConnectException: Connection refused to host: 10.77.283.97; nested exception is:
java.net.ConnectException: Connection refused: connect
StackTrace
java.rmi.ConnectException: Connection refused to host: 10.77.283.97; nested exc
eption is:
java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at AccountServerImpl.main(AccountServerImpl.java:56)

For registering, I am using the following statement.
Naming.rebind("rmi//10.77.283.97/AccountServer",instance);

TIA,
NBG
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2009
Added on Jul 25 2005
4 comments
901 views