File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes RMI :remote exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "RMI :remote exception" Watch "RMI :remote exception" New topic

RMI :remote exception

iyappan sankaran
Ranch Hand

Joined: Aug 11, 2003
Posts: 58
i have bank,store,client application
up to this no problem
then i got this exception

Remote Exception: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: Connection refused

pls help me
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
you are a little terse here with details...

can you show some code ?, what line/part of code is causing the exception ?

does localhost resolve to your machine ? is the registry up and running, is the service bound to the registry, are you allowed to connect to the port ? are you using the good port number ?

I agree. Here's the link:
subject: RMI :remote exception
It's not a secret anymore!