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
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: Connection refused: connect Connection refused: connect
at Method)
Server start error!
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.bind(Unknown Source)
at suncertify.server.Server.main(

Java makes world work!!!
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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 - iOS Apps
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 ]
I agree. Here's the link:
subject: RMI Exception
It's not a secret anymore!