无法解析多部分请求:流意外结束

时间:2018-11-30 00:05:34

标签: javascript java jquery ajax forms

我有一个程序,该程序使用户可以上传多个图像,并使用ajax [FormData]自动保存图像。除了当摄像机处于活动状态并且调用自动保存功能时,效果很好。

  

2018-11-29 16:47:57,752错误   [org.apache.struts.upload.C​​ommonsMultipartRequestHandler]-无法执行   解析多部分请求   org.apache.commons.fileupload.FileUploadBase $ IOFileUploadException:   处理多部分/表单数据请求失败。流结束   意外地   org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:351)     在   org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:288)     在   org.apache.struts.upload.C​​ommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:193)     在   org.apache.struts.util.RequestUtils.populate(RequestUtils.java:442)     在   org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)     在   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)     在   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)     在   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:643)在   javax.servlet.http.HttpServlet.service(HttpServlet.java:723)在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)     在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)     在   org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:75)     在   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)     在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)     在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)     在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)     在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)     在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)     在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)     在   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)     在   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)     在   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)     在   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)     在   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)     在   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)     在   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)     在   org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:620)     在   org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:489)     在java.lang.Thread.run(Thread.java:745)造成原因:   org.apache.commons.fileupload.MultipartStream $ MalformedStreamException:   流意外结束

0 个答案:

没有答案