wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI Exception" Watch "RMI Exception" New topic

RMI Exception

Victor Pan
Ranch Hand

Joined: May 01, 2002
Posts: 36
Can any one tell me why these information display when I trying to bind an object to rmi server.
java.rmi.ConnectException: Connection refused to host:; nested exception 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(PlainSocketImpl.java:320)
Server start error!
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at suncertify.server.Server.main(Server.java:27)

Java makes world work!!!
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)

I'd start here, why is it an unknown source? Did you run rmic on your class you intend to bind?

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
It's an unknown source, I suspect, because no debugging information has been compiled in. I notice the IP is from a NAT range. Do you have network configuration problems and/or a personal firewall? Are you trying to access the registry from a different machine?
- Peter
[ December 02, 2002: Message edited by: Peter den Haan ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: RMI Exception
Similar Threads
The concurrent problem about RMI
Can you help me to solve this rmi connection problem
ConnectRefused in RMI
Why can't client connect to RMI server on same machine?
help jboss