File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts FileUploadException