HTTP based bug tracking and defect tracking
Feb 8, 2010 | Home > Bugzero > FAQs > Errors

Apache file upload error with https: read timed out

Problem

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)
      ...
Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      ...
      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

Causes and solutions

This error is related to http://support.microsoft.com/kb/889334.
It stated that, this problem may occur when all the following conditions are true:

  • You have installed Microsoft Windows XP Service Pack 2 (SP2).
  • The Web page to which you upload the file uses a Secure Sockets Layer (SSL) connection.
  • The URL to connect to the secure Web site starts with https://.
  • The Web page to which you upload the file is one of the following:
    • An active server page (.asp).
    • A Web page that uses a script to process the uploaded file.
So the solutions is:
  • (Server) Fix the upload page, use a plain Submit button and not use additional javascript to process the submit, or/and
  • (Client) Apply the Microsoft hot fix listed above (http://support.microsoft.com/kb/889334).

 
* Reference brought to you by Bugzero, it's more than just bug tracking software!