| Author |
java.net.ConnectException: Connection timed out: connect
|
surendra babu k
Greenhorn
Joined: Oct 21, 2011
Posts: 11
|
|
java.net.ConnectException: Connection timed out: connect
Hi.. I am getting the above exception while sending a request to remote server....
while processing credit cards i am getting this exception
Can any one tell how can i handle that exception....
Thanks in adv.....
|
 |
Nam Ha Minh
Ranch Hand
Joined: Oct 31, 2011
Posts: 347
|
|
|
Probably the server was taking so long to respond, so time out happened.
|
Job Offer: Online working Java technical writing
|
 |
surendra babu k
Greenhorn
Joined: Oct 21, 2011
Posts: 11
|
|
How can i handle that exception...
lets say i am processing four cards at a time...after processing 3 cards successfully if timeout exception occurs in the 4th card then my system shows the four cards are not processed because of time out exception.
|
 |
naveen yadav
Ranch Hand
Joined: Oct 23, 2011
Posts: 380
|
|
|
you can try public void setConnectTimeout(int timeout) to set the time out period . This method may throw java.net.SocketException , so you need to handle that.
|
 |
 |
|
|
subject: java.net.ConnectException: Connection timed out: connect
|
|
|