[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7236
  • Last Modified:

Processing of multipart/form-data request failed. Read timed out]: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException

hey guys,
                 
I am using the struts 1.2 framework and websphere 5.1, I got this error in the application log when I tried to upload a zip file , it took sometime and at last I found  Page cannot  be found error. Could you please let me know why this type of issues arises sometime.

WebGroup      E SRVE0026E: [Servlet Error]-[Processing of multipart/form-data request failed. Read timed out]: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out
      at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:359)
      at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
      at com.aigaa.pmw.controllers.ExtendedMultiPartRequestHandler.handleRequest(ExtendedMultiPartRequestHandler.java:213)
      at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:442)
      at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1075)
      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:583)
      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:211)
      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:139)
      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:332)
      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:255)
      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:657)
      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:463)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at com.ibm.ws.io.Stream.read(Stream.java:17)
      at com.ibm.ws.io.ReadStream.read(ReadStream.java:181)
      at com.ibm.ws.http.ContentLengthInputStream.read(ContentLengthInputStream.java:48)
      at com.ibm.ws.io.ReadStream.read(ReadStream.java:181)
      at com.ibm.ws.webcontainer.http.HttpConnection.read(HttpConnection.java:342)
      at com.ibm.ws.webcontainer.srp.SRPConnection.read(SRPConnection.java:200)
      at com.ibm.ws.webcontainer.srt.SRTInputStream.read(SRTInputStream.java:80)
      at com.ibm.ws.webcontainer.srt.http.HttpInputStream.read(HttpInputStream.java:312)
      at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:959)
      at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)
      at java.io.InputStream.read(InputStream.java:89)
      at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)
      at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)
      at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:354)
      ... 28 more

[2/6/09 16:41:30:120 EST]   6547f6 SRTServletReq E SRVE0120E: IO Error java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at com.ibm.ws.io.Stream.read(Stream.java:17)
      at com.ibm.ws.io.ReadStream.read(ReadStream.java:181)
      at com.ibm.ws.http.ContentLengthInputStream.read(ContentLengthInputStream.java:48)
      at com.ibm.ws.io.ReadStream.read(ReadStream.java:181)
      at com.ibm.ws.webcontainer.http.HttpConnection.read(HttpConnection.java:342)
      at com.ibm.ws.webcontainer.srp.SRPConnection.read(SRPConnection.java:200)
      at com.ibm.ws.webcontainer.srt.SRTInputStream.read(SRTInputStream.java:80)
      at com.ibm.ws.webcontainer.srt.http.HttpInputStream.read(HttpInputStream.java:312)
      at java.io.InputStream.read(InputStream.java:89)
      at com.ibm.ws.webcontainer.srt.SRTServletRequest.finish(SRTServletRequest.java:1298)
      at com.ibm.ws.webcontainer.srt.SRTConnectionContext.finishConnection(SRTConnectionContext.java:86)
      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:218)
      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:332)
      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:255)
      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:657)
      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:463)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)


thanks
Bala
0
balatrue
Asked:
balatrue
  • 3
1 Solution
 
ahoffmannCommented:
> ..  type of issues arises sometime.
the client did not provide all data in the time allowed by the server
0
 
objectsCommented:
try increasing the timout settings for commons fileupload
0
 
balatrueAuthor Commented:
Ok , I will try this time out setting for fileupload. Thank you for the soultion.
0
 
balatrueAuthor Commented:
thanks
0
 
balatrueAuthor Commented:
Hi Savant,
                I am able to upload the same zip file successfully from other system, So I guess this is different isue and can you please provide any other solution to fix this issue.


Thanks
Bala
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now