wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Read Timeout Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Read Timeout Exception" Watch "Read Timeout Exception" New topic
Author

Read Timeout Exception

matt alberty
Greenhorn

Joined: May 27, 2005
Posts: 6
All,

Have a question. I'm using the apache http client to connect over https through a proxy server.

In our production environment we get around 5 - 10 of the following error daily:

java.net.SocketTimeoutException: Read timed out

Any ideas on what might be causing this or suggestions on how to try and isolate it?

if (password != null && userName != null) {
debugLog( "invokeWebService: setting HTTP credentials & to do Authentication" );
org.apache.commons.httpclient.Credentials httpCredentials = new org.apache.commons.httpclient.UsernamePasswordCredentials( userName, password );
// httpClient
httpClient.getState().setCredentials( org.apache.commons.httpclient.auth.AuthScope.ANY, httpCredentials );
poster.setDoAuthentication( true );
}
if (proxyHost != null) {
debugLog("Proxy settings were present in the config file - will set the proxy in the httpClient");
httpClient.getHostConfiguration().setProxy(proxyHost, proxyPort);
}
debugLog( "invokeWebService: Post HTTP" );
httpClient.executeMethod( poster );
int status = poster.getStatusCode();
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Read Timeout Exception
 
Similar Threads
Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Requ
Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Requ
how to use make HTTP request behind a proxy server
Socket connection from behind the Proxy Server
Swing Browser Extension