2 Replies Latest reply on Dec 10, 2007 11:39 AM by Shane Bryzak

    FileUploadException from SocketTimeoutException

    David DIDIER Newbie

      Hi,
      I have an upload control which works fine with small files but when time exceeds ~20s (for an 14Mo file) I got :

      11:29:06,468 WARN [lifecycle] executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1296df5) threw exception
      org.jboss.seam.web.FileUploadException: IO Error parsing multipart request
       at org.jboss.seam.web.MultipartRequest.parseRequest(MultipartRequest.java:434)
       at org.jboss.seam.web.MultipartRequest.getParam(MultipartRequest.java:512)
       at org.jboss.seam.web.MultipartRequest.getParameter(MultipartRequest.java:563)
       at com.sun.faces.context.RequestParameterMap.get(ExternalContextImpl.java:1135)
       at com.sun.faces.context.RequestParameterMap.get(ExternalContextImpl.java:1120)
       at java.util.Collections$UnmodifiableMap.get(Collections.java:1282)
       at com.sun.faces.application.ViewHandlerImpl.calculateRenderKitId(ViewHandlerImpl.java:512)
       at org.jboss.seam.jsf.SeamViewHandler.calculateRenderKitId(SeamViewHandler.java:62)
       at org.ajax4jsf.application.ViewHandlerWrapper.calculateRenderKitId(ViewHandlerWrapper.java:76)
       at com.sun.facelets.FaceletViewHandler.calculateRenderKitId(FaceletViewHandler.java:792)
       at org.ajax4jsf.application.ViewHandlerWrapper.calculateRenderKitId(ViewHandlerWrapper.java:76)
       at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:267)
       at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:137)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       at sun.reflect.GeneratedMethodAccessor389.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
       at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
       at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
       at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
       at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:80)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       at sun.reflect.GeneratedMethodAccessor670.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
       at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
       at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
       at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
       at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
       at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
       at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
       at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
       at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.net.SocketTimeoutException: Read timed out
       at java.net.SocketInputStream.socketRead0(Native Method)
       at java.net.SocketInputStream.read(SocketInputStream.java:129)
       at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:716)
       at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:746)
       at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)
       at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:675)
       at org.apache.coyote.Request.doRead(Request.java:428)
       at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:297)
       at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:405)
       at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:312)
       at org.apache.catalina.connector.CoyoteInputStream$4.run(CoyoteInputStream.java:177)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:172)
       at org.jboss.seam.web.MultipartRequest.parseRequest(MultipartRequest.java:421)
       ... 85 more
      


      I am quite new to web client and jboss/seam and I cannot find any setting to change for that matter.

      *** This is really urgent ***

      Thank you,

      David