error : Failed to parse multipart request...while uploading the file
843840May 9 2008 — edited May 9 2008Hi all...
I am uploading the file to a server using struts form.
I am using "org.apache.struts.upload.FormFile" class to read the file..... i am able to read the file but on weblogic console i am getting the following exception :
"ERROR [ExecuteThread: '3' for queue: 'weblogic.kernel.Default'] org.apache.strut
s.upload.CommonsMultipartRequestHandler 2008-05-09 13:03:19,844 - Failed to pars
e multipart request
org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-
data request failed. EOF after reading only: '0' of: '264' promised bytes, out o
f which at least: '0' were already buffered
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
ase.java:429)
at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
(CommonsMultipartRequestHandler.java:195)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:445)
at org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
essor.java:798)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:205)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116
4)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
.....any idea why i am getting this