aspose file tools*
The moose likes Websphere and the fly likes file upload, InterruptedIOException, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "file upload, InterruptedIOException, "read timed out"" Watch "file upload, InterruptedIOException, "read timed out"" New topic
Author

file upload, InterruptedIOException, "read timed out"

Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
Websphere 4.0.5 and IBM's HTTP server
A java.io.InterruptedIOException occurs during file upload.
File upload via HTTP POST
multipart/form-data
content-length=4261138
error: ControlServlet: java.io.InterruptedIOException: Read timed out
null
java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at com.ibm.ws.io.Stream.read(Stream.java:17)
at com.ibm.ws.io.ReadStream.read(ReadStream.java:183)
at com.ibm.ws.http.ContentLengthInputStream.read(ContentLengthInputStream.java:34)
at com.ibm.ws.io.ReadStream.read(ReadStream.java:183)
at com.ibm.servlet.engine.http11.HttpConnection.read(HttpConnection.java:344)
at com.ibm.servlet.engine.srp.SRPConnection.read(SRPConnection.java:200)
at com.ibm.servlet.engine.srt.SRTInputStream.read(SRTInputStream.java:74)
at com.ibm.servlet.engine.srt.http.HttpInputStream.read(HttpInputStream.java:301)
at com.oreilly.servlet.multipart.BufferedServletInputStream.fill(BufferedServletInputStream.java:64)
at com.oreilly.servlet.multipart.BufferedServletInputStream.readLine(BufferedServletInputStream.java:108)
at com.oreilly.servlet.multipart.LimitedServletInputStream.readLine(LimitedServletInputStream.java:60)
at com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:93)
at com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:191)
at com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:152)
at com.oreilly.servlet.multipart.FilePart.write(FilePart.java:201)
at com.oreilly.servlet.multipart.FilePart.writeTo(FilePart.java:160)
at com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:314)
at com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:211)
at com.rba.application.mvc.framework.ControlServlet.processRequest(ControlServlet.java:363)
at com.rba.application.mvc.framework.ControlServlet.doPost(ControlServlet.java:229)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:154)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:138)
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
This might be related. I have not confirmed it yet.

PQ51952: IHS PLUGIN, GETTING BUFFER OVERFLOW
ERRORS. GARBAGE IS IN THE HTTP REQUEST.
http://www-1.ibm.com/support/docview.wss?uid=swg1PQ51952

Error description

When using ihs and the plugin, getting buffer overflow errors
where garbage is in the http request, in ihsaccess log and il
legal exceptions in websphere log.
-------
Defect 108608

Local fix



Problem summary

****************************************************************
* USERS AFFECTED: All WebSphere Application Server users of *
* IHS and the plugin. *
****************************************************************
* PROBLEM DESCRIPTION: Buffer overflow errors when using IHS *
* and the plugin. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
The plugin currently calls the Apache API ap_client_get_block()
giving the buf to read into and the length to read in order
to get the POST content. This call does not guarantee that
it will read the full length passed in. When the full length
is not obtained on the first read, the code needs to call it
again to read the remainder. This can be done with a simple
loop and some pointer arithmetic.
 
 
subject: file upload, InterruptedIOException, "read timed out"