It's not a secret anymore!
The moose likes Servlets and the fly likes HttpRequest InputStream read timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpRequest InputStream read timeout" Watch "HttpRequest InputStream read timeout" New topic

HttpRequest InputStream read timeout

Shakir Shaikh

Joined: Oct 12, 2006
Posts: 3

I am getting a Read timed out when trying to read the input stream from the HttpRequest object. This is done to get the form parameter values for content-type=multipart/form-data

This application is deployed on a Websphere Application server and working fine as a standalone application (Say Server 1). Another box (Say Server 2) is hosting a single servlet application to forward the requests to server 1. Server 2 was running fine. We have just redeployed the same EAR and now Server 1 is failing to read the input stream from Server2.

One strange thing is that a similar application as on Server 2 is running on production and staging environment by forwarding the requests to Server1, in which case Server 1 is successfully reading the input stream from the HttpRequest object.

Hope, I have not confused you a lot. There might some settings on the Websphere or in the Application or on the network that is not allowing the input stream to be read by the remote server.

Any pointers or hint will be appreciated. You can also send me an email at

Thanks & Regards,
Shakir Shaikh
Sunil Vasudevan
Ranch Hand

Joined: Mar 05, 2007
Posts: 107
First.. can the two servers communicate with each other on the ports you have configured for WAS?

I mean do you have any firewall present. Try a simple HTML or JSP call first between the two servers.

Sunil.V<br />SCJP2, SCWCD1.4, SCBCD1.3
I agree. Here's the link:
subject: HttpRequest InputStream read timeout
It's not a secret anymore!