This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Connection timed out error while trying to access web page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Connection timed out error while trying to access web page " Watch "Connection timed out error while trying to access web page " New topic
Author

Connection timed out error while trying to access web page

Rajesh Thorat
Greenhorn

Joined: Jun 29, 2010
Posts: 3
Hi,

I am trying to write a simple Junit test case, where I should be able to access a web page and see if particular element is present on web page.
I have wrote a piece of code as below :



I am executing this Junit test case from Eclipse, but getting following error :

Oct 26, 2012 1:52:32 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
Oct 26, 2012 1:52:32 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
java.net.ConnectException: Connection timed out: connect

Would appreciate a help on this.

Regards,
Vaibhav

@
Rajesh Thorat
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32694
    
    4
Moving discussion as too difficult for “beginning”.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Connection timed out error while trying to access web page
 
Similar Threads
Webdav
Catalina.stop: java.net.ConnectException: Connection refused: connect
connection refused
"Connection timed out" with HttpClient.
performance issue in iterating through large list of result set