Results 1 to 1 of 1
- 06-27-2011, 04:39 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 1
- Rep Power
- 0
Exceptions on client connections after a client crash
Hello
I'm developing a ring election algorithm, and the same aplication sometimes is the server, and sometimes is a client.
The first process start as server, and the other ones connect to the firs as client. I can connect N processes to the server, and it still working fine.
But, when I finish one of the client processes (simulating a crash), I can't connect any other client to the server.
When I try it, I get the following exception:
I put my connection functions in Pastebin, can anyone take a look ?RemoteException occurred in server thread; nested exception is:
java.rmi.ConnectException: Connection refused to host: 10.0.0.101; nested exception is:
java.net.ConnectException: Connection refused: connect
Please, I already tried everythig I know, and everythig Google told me to do, hehehe
Here is the link: [Java] RMI connect functions - Pastebin.com
The first function called is joinAsCoordinator(), if it crash, the cathes make the process connect as a client.
The exception cited above, is the RemoteException of the function connect2Coordinator().
Any idea ??
Thanks soo much!
Similar Threads
-
send message from a client to another client
By esko in forum NetworkingReplies: 2Last Post: 02-04-2010, 07:21 PM -
Client catching Web Service User Exceptions [Java 6.0.17]
By Shaitan00 in forum Advanced JavaReplies: 4Last Post: 11-22-2009, 01:09 AM -
Datagram Client and Server, client timer question
By saru88 in forum NetworkingReplies: 1Last Post: 10-05-2008, 03:12 PM -
Identify Client in Socket Client Server Application
By masadjie in forum NetworkingReplies: 1Last Post: 12-20-2007, 09:18 AM -
TCPIP Client (handling specific exceptions)
By ravian in forum NetworkingReplies: 3Last Post: 11-29-2007, 09:56 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks