wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts FileUploadException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts FileUploadException" Watch "Struts FileUploadException" New topic
Author

Struts FileUploadException

Sridhar Gollapalli
Greenhorn

Joined: Sep 14, 2006
Posts: 4
Hi Everybody,

In my application, I am uploading a file by using struts upload. My application configuration is Weblogic 8.1 sp2 and jdk 1.4. I am getting 2 errors when uploading the file

1) org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. EOF after reading only: '0' of: '1477' promised bytes, out of which at least: '0' were already buffered
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)
at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:233)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)

2) org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Read timed out
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)
at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:233)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)

This actually application server throws before it goes to Action class.

Can any body please suggest us what need to be done. I can not even catch the exceptions and user who uploaded thinks that file is uploaded. Can any body please help for this.

I really appreciate for the help.

Thanks in Advance.

Sriha
P Kuks
Greenhorn

Joined: Feb 25, 2007
Posts: 1
Hi Sridhar,

I happen to have the same problem as you. Were you able find any solution? Any help would be much appreciated

Thanks

pkuks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts FileUploadException
 
Similar Threads
File Upload exception using Apache Commons
File Upload exception using Apache Commons
File upload limit using tomcat
File Upload exception using Apache Commons
FileUploadException while uploading a file using struts