6 Replies Latest reply on Oct 29, 2013 1:28 PM by Ron Si

    FileUploadException: IO Error Parsing Multipart Request

    Ron Si Newbie

      I have upgraded to Seam 2.2.2.Final and using RichFaces 3.3.3 (runs on EAP 6.1.0). All of a sudden my FileUpload has stopped working. Below are the settings I have I get below WARNINGS. Any idea what it could be?

       

      components.xml

      <web:multipart-filter create-temp-files="true" max-request-size="1000000" url-pattern="*.seam"/>

       

      web.xml

      <filter>

              <display-name>RichFaces Filter</display-name>

              <filter-name>richfaces</filter-name>

              <filter-class>org.ajax4jsf.Filter</filter-class>

          </filter>

          <filter-mapping>

              <filter-name>richfaces</filter-name>

              <servlet-name>Faces Servlet</servlet-name>

              <dispatcher>REQUEST</dispatcher>

              <dispatcher>FORWARD</dispatcher>

              <dispatcher>INCLUDE</dispatcher>

              <dispatcher>ERROR</dispatcher>

          </filter-mapping>

       

       

      <code>

      13:29:39,361 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-mac150.company.local/192.111.111.111:8080-6) JSF1053: (Listener: org.richfaces.component.FileUploadPhaselistener.beforePhase(), Phase ID: RESTORE_VIEW 1,  View ID: ) Exception thrown during phase-listener execution: org.ajax4jsf.exception.FileUploadException: IO Error parsing multipart request

      13:29:39,363 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-mac150.company.local/192.111.111.111:8080-6) org.ajax4jsf.request.MultipartRequest.parseRequest(MultipartRequest.java:388)

      org.richfaces.component.FileUploadPhaselistener.beforePhase(FileUploadPhaselistener.java:63)

      com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)

      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)

      com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)

      com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

      javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:367)

      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.company.extranet.util.SecurityContextFilter.doFilter(SecurityContextFilter.java:109)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:86)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.company.extranet.util.CacheDisablingFilter.doFilter(CacheDisablingFilter.java:41)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.company.extranet.util.NDCFilter.doFilter(NDCFilter.java:52)

      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

      org.company.extranet.util.KalSeamFilter.doFilter(KalSeamFilter.java:183)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

      com.sun.identity.agents.filter.AmAgentBaseFilter.allowRequestToContinue(AmAgentBaseFilter.java:130)

      com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(AmAgentBaseFilter.java:80)

      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389)

      org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

      org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

      org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

      java.lang.Thread.run(Thread.java:722)

      </code>