问题描述
报的是流丢失错误,没当报了这个错误后,通过struts访问改页面时action就会找不到求解答啊!谁遇到过帮忙看一下啊.我认为是报错后直接修改了action的调整路径,再去访问该action就找不到;但是不是知道对不对怎么去验证该怎么解决?或者真正的问题是什么啊求解答啊!ERROR2012-06-0619:16:26,593[CommonsLogger.java,27]-Unabletoparserequestorg.apache.commons.fileupload.FileUploadBase$IOFileUploadException:Processingofmultipart/form-datarequestfailed.Streamendedunexpectedlyatorg.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)atorg.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parse(JakartaMultiPartRequest.java:93)atorg.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.<init>(MultiPartRequestWrapper.java:75)atorg.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:663)atorg.apache.struts2.dispatcher.FilterDispatcher.prepareDispatcherAndWrapRequest(FilterDispatcher.java:327)atorg.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:367)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)atjava.lang.Thread.run(Thread.java:619)Causedby:org.apache.commons.fileupload.MultipartStream$MalformedStreamException:Streamendedunexpectedlyatorg.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:983)atorg.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)atjava.io.InputStream.read(InputStream.java:85)atorg.apache.commons.fileupload.util.Streams.copy(Streams.java:94)atorg.apache.commons.fileupload.util.Streams.copy(Streams.java:64)atorg.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:362)...24moreERROR2012-06-0619:16:26,593[CommonsLogger.java,23]-Processingofmultipart/form-datarequestfailed.Streamendedunexpectedly
解决方案
解决方案二:
哥,我也遇到了这个问题,三天了没解决,要疯了
解决方案三:
而且只在IE9及更低版本的IE浏览器中有这个错,IE10和其他浏览器甚至是safari都是好的
解决方案四:
问题解决了吗?求指导啊
解决方案五:
werty
解决方案六:
1修改tomcat配置文件server.xml,找到类似于下面配置:<Connectorport="8086"maxHttpHeaderSize="8192"maxThreads="150"minSpareThreads="25"maxSpareThreads="75"enableLookups="false"redirectPort="8443"acceptCount="100"connectionTimeout="20000"disableUploadTimeout="true"/>将上面的参数disableUploadTimeout值改为false即可。2修改tomcat配置文件server.xml中的另外一处:<Connectorexecutor="tomcatThreadPool"port="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443"/>也在里边加入了disableUploadTimeout="false"一句。如果还不行,可能是服务器外加了防火墙或者限制了上传文件的大小之类的,联系网络中心进行相关设置进行设置即可。
解决方案七:
楼上的正解。。。