File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpRequest InputStream read timeout" Watch "HttpRequest InputStream read timeout" New topic
Author

HttpRequest InputStream read timeout

Shakir Shaikh
Greenhorn

Joined: Oct 12, 2006
Posts: 3
Hi,

I am getting a java.io.InterruptedIOException: 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 shaikhsn@gmail.com

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: http://aspose.com/file-tools
 
subject: HttpRequest InputStream read timeout
 
Similar Threads
IBM HttpServer and websphere Appserver
How to implment server socket reject?
Package problem
JSP- Servlet - File Streaming
Passed 700,701 and 340 last Thursday