首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

org.apache.commons.fileupload.FileUploadException: Processing of multipart form-

2014-01-26 
严重: Failed to parse multipart request org.apache.commons.fileupload.FileUploadException: Processin

严重: Failed to parse multipart request

org.apache.commons.fileupload.FileUploadException: Processing of multipart form-data request failed. EOF after reading only: '0 ' of: '1855632 ' 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)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)


------解决方法--------------------------------------------------------
是不是传了大文件了的啊,我看了下帖子,有解决的方案,设置一下disableUploadTimeout 属性为flase,具体参考:

http://www.tek-tips.com/viewthread.cfm?qid=627123
------解决方法--------------------------------------------------------
你在提交表单的时候要以post提交并且action 的enctype= "multipart/form-data "。

        

热点排行