File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Urgent.... database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Urgent.... database connection "Connection refused to host:"" Watch "Urgent.... database connection "Connection refused to host:"" New topic

Urgent.... database connection "Connection refused to host:"

Ajay Thacker

Joined: Aug 21, 2003
Posts: 6
I am creating application in Java. My Java RMI server is connecting to SQL server 2000. It connects properly for couple of minutes and then I am getting following error.
java.rmi.ConnectException: Connection refused to host:; nested ex
ception is: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at circdatabase.client.StatusFrame_Stub.callRefresh(Unknown Source)
at circdatabase.loanServices.LoanServiceImpl.callRefresh(Unknown Source)
at circdatabase.loanServices.LoanServiceImpl$Schedule$
nown Source)
at java.util.TimerThread.mainLoop(Unknown Source)
at Source)
Caused by: Connection refused: connect
at Method)
at Source)
at Source)
at Source)
at Source)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
... 9 more
Can anyone please guide me?
[ September 30, 2003: Message edited by: AJT ]
[ October 01, 2003: Message edited by: AJT ]

- AT
I agree. Here's the link:
subject: Urgent.... database connection "Connection refused to host:"
It's not a secret anymore!