Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI :remote exception

 
iyappan sankaran
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai
i have bank,store,client application
1.rmiregistry
2.bank
up to this no problem

3.store
then i got this exception

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


pls help me
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?


pascal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic