1 Reply Latest reply on May 10, 2011 4:22 AM by web websson

    <rich:fileUpload> file size status

    web websson Newbie

      According those threads:

      http://community.jboss.org/message/55024

      and

      http://community.jboss.org/message/580024

       

      RichFaces FileUpload size - because of bugs - was limited to 2147483647 and

      was fixed according: https://issues.jboss.org/browse/RF-6590

       

      Is this possible to merge this fix on 3.3.x trunk?

      Or is it any work around to upload files > 7-8GB?

        • 1. <rich:fileUpload> file size status
          web websson Newbie

          OK, a more detailed picture related to file size limitation:

          an apllication used to upload files > 7-8GB

          using: RichFaces 3.3.3.final & facelets1.1.15 running on JBoss 5.1

           

          Digging in the code I found that if setting the maximum size of a

          file upload request to 0 means no limit, so the RichFaces Filter

          configuration looks like:

           

                  <init-param>

                      <param-name>createTempFiles</param-name>

                      <param-value>true</param-value>

                  </init-param>

                  <init-param>

                      <param-name>maxRequestSize</param-name>

                      <param-value>0</param-value>

                  </init-param>

           

          Now to the tests:

          1. rich:fileUpload with flash on: works OK for files under the magic Integer.MAX_VALUE value

          2. rich:fileUpload with flash on: got "Transfer error occurred" for bigger files & nothig on the logg

          3. rich:fileUpload with flash off: works OK for files under

          4. rich:fileUpload with flash off: get "Transfer error occurred" for bigger and following logg:

          10:18:44,829 WARNING [lifecycle] 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:102)

          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:290)

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

          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:235)

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

          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          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:235)

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

          org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

          org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:135)

          org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94)

          org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:88)

          org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62)

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

          org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

          org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

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

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

          org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:711)

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

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

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

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

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

          java.lang.Thread.run(Unknown Source)

           

           

          Maybe we can get some help from the RichFaces team!

           

          best regards!