• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ConnectIOException

 
harcharan kanwal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am unable to look up the remote object , when i get to Naming.lookup(), i got ConnectIOException has been thrown.Please throw a idea on it
kanwal
 
Rick Fortier
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you start the rmiregistry? Did you register the interface?
 
harcharan kanwal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the answer Rick , i woke up late today
thanks for the reply rick,
yes the rmiregistry was running on separate shell window, also registered the remote objec successfully to the registry. The Lookup method is failing , spits the following exception.
Naming.lookup("//localhost/tester");
java.rmi.ConnectException: Connection refused to host: 10.10.0.12; nested exception is:
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused

[This message has been edited by harcharan kanwal (edited August 01, 2001).]
 
harcharan kanwal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
now the problem started at begining ,when i am trying to bind the object
Naming.rebind("tester",dataBaseInterface);
and get the following exception
ava.rmi.ConnectException: Connection refused to host: 10.10.0.12; nested exception is:
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
 
harcharan kanwal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problime solved with changing /etc/hosts file
we have dhcp assigning ip adresses .commenting out the ip address assigned to my name in the hosts file did the trick for right now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic