commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shrivallabh Deshmukh <shrivallabh.deshm...@sungard.com>
Subject File upload issue with large files.
Date Mon, 21 Nov 2011 11:38:06 GMT
Folks,



For small files, File upload works fine.



For large files (Around 10gb). I get the following error.



*org.apache.commons.fileupload.FileUploadBase$IOFileUploadException*:
Processing of multipart/form-data request failed. Stream ended unexpectedly

      at org.apache.commons.fileupload.FileUploadBase.parseRequest(*
FileUploadBase.java:367*)

      at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(*
ServletFileUpload.java:126*)

      at
com.sungard.edison.upload.server.actions.UploadFileActionImpl.processRequest(
*UploadFileActionImpl.java:200*)

      at
com.sungard.edison.upload.server.actions.UploadFileActionImpl.execute(*
UploadFileActionImpl.java:73*)

      at com.sungard.edison.upload.server.UploadServlet.doPost(*
UploadServlet.java:133*)

      at javax.servlet.http.HttpServlet.service(*HttpServlet.java:637*)

      at javax.servlet.http.HttpServlet.service(*HttpServlet.java:717*)

      at com.google.inject.servlet.ServletDefinition.doService(*
ServletDefinition.java:263*)

      at com.google.inject.servlet.ServletDefinition.service(*
ServletDefinition.java:178*)

      at com.google.inject.servlet.ManagedServletPipeline.service(*
ManagedServletPipeline.java:91*)

      at com.google.inject.servlet.FilterChainInvocation.doFilter(*
FilterChainInvocation.java:62*)

      at
com.sungard.edison.ui.server.shiro.EndOfRequestFilter.doFilterInternal(*
EndOfRequestFilter.java:56*)

      at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(*
OncePerRequestFilter.java:81*)

      at com.google.inject.servlet.FilterDefinition.doFilter(*
FilterDefinition.java:163*)

      at com.google.inject.servlet.FilterChainInvocation.doFilter(*
FilterChainInvocation.java:58*)

      at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(*
ProxiedFilterChain.java:61*)

      at org.apache.shiro.web.servlet.AdviceFilter.executeChain(*
AdviceFilter.java:108*)

      at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(*
AdviceFilter.java:137*)

      at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(*
OncePerRequestFilter.java:81*)

      at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(*
ProxiedFilterChain.java:66*)

      at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(*
AbstractShiroFilter.java:359*)

      at com.sungard.edison.ui.server.shiro.EdisonFilter.access$1(*
EdisonFilter.java:1*)

      at com.sungard.edison.ui.server.shiro.EdisonFilter$1.call(*
EdisonFilter.java:59*)

      at org.apache.shiro.subject.support.SubjectCallable.doCall(*
SubjectCallable.java:90*)

      at org.apache.shiro.subject.support.SubjectCallable.call(*
SubjectCallable.java:83*)

      at org.apache.shiro.subject.support.DelegatingSubject.execute(*
DelegatingSubject.java:344*)

      at com.sungard.edison.ui.server.shiro.EdisonFilter.doFilterInternal(*
EdisonFilter.java:56*)

      at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(*
OncePerRequestFilter.java:81*)

      at com.google.inject.servlet.FilterDefinition.doFilter(*
FilterDefinition.java:163*)

      at com.google.inject.servlet.FilterChainInvocation.doFilter(*
FilterChainInvocation.java:58*)

      at com.google.inject.servlet.ManagedFilterPipeline.dispatch(*
ManagedFilterPipeline.java:118*)

      at com.google.inject.servlet.GuiceFilter.doFilter(*
GuiceFilter.java:113*)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(*
ServletHandler.java:1088*)

      at org.mortbay.jetty.servlet.ServletHandler.handle(*
ServletHandler.java:360*)

      at org.mortbay.jetty.security.SecurityHandler.handle(*
SecurityHandler.java:216*)

      at org.mortbay.jetty.servlet.SessionHandler.handle(*
SessionHandler.java:181*)

      at org.mortbay.jetty.handler.ContextHandler.handle(*
ContextHandler.java:729*)

      at org.mortbay.jetty.webapp.WebAppContext.handle(*
WebAppContext.java:405*)

      at org.mortbay.jetty.handler.HandlerWrapper.handle(*
HandlerWrapper.java:152*)

      at org.mortbay.jetty.handler.RequestLogHandler.handle(*
RequestLogHandler.java:49*)

      at org.mortbay.jetty.handler.HandlerWrapper.handle(*
HandlerWrapper.java:152*)

      at org.mortbay.jetty.Server.handle(*Server.java:324*)

      at org.mortbay.jetty.HttpConnection.handleRequest(*
HttpConnection.java:505*)

      at org.mortbay.jetty.HttpConnection$RequestHandler.content(*
HttpConnection.java:843*)

      at org.mortbay.jetty.HttpParser.parseNext(*HttpParser.java:647*)

      at org.mortbay.jetty.HttpParser.parseAvailable(*HttpParser.java:211*)

      at org.mortbay.jetty.HttpConnection.handle(*HttpConnection.java:380*)

      at org.mortbay.io.nio.SelectChannelEndPoint.run(*
SelectChannelEndPoint.java:395*)

      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(*
QueuedThreadPool.java:488*)

Caused by: *
org.apache.commons.fileupload.MultipartStream$MalformedStreamException*:
Stream ended unexpectedly

      at
org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(
*MultipartStream.java:983*)

      at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(
*MultipartStream.java:887*)

      at java.io.InputStream.read(*InputStream.java:85*)

      at org.apache.commons.fileupload.util.Streams.copy(*Streams.java:94*)

      at org.apache.commons.fileupload.util.Streams.copy(*Streams.java:64*)

      at org.apache.commons.fileupload.FileUploadBase.parseRequest(*
FileUploadBase.java:362*)

      ... 48 more



*org.apache.commons.fileupload.FileUploadBase$IOFileUploadException*:
Processing of multipart/form-data request failed. Stream ended unexpectedly

      at org.apache.commons.fileupload.FileUploadBase.parseRequest(*
FileUploadBase.java:367*)

      at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(*
ServletFileUpload.java:126*)

      at
com.sungard.edison.upload.server.actions.UploadFileActionImpl.processRequest(
*UploadFileActionImpl.java:200*)

      at
com.sungard.edison.upload.server.actions.UploadFileActionImpl.execute(*
UploadFileActionImpl.java:73*)

      at com.sungard.edison.upload.server.UploadServlet.doPost(*
UploadServlet.java:133*)

      at javax.servlet.http.HttpServlet.service(*HttpServlet.java:637*)

      at javax.servlet.http.HttpServlet.service(*HttpServlet.java:717*)

      at com.google.inject.servlet.ServletDefinition.doService(*
ServletDefinition.java:263*)

      at com.google.inject.servlet.ServletDefinition.service(*
ServletDefinition.java:178*)

      at com.google.inject.servlet.ManagedServletPipeline.service(*
ManagedServletPipeline.java:91*)

      at com.google.inject.servlet.FilterChainInvocation.doFilter(*
FilterChainInvocation.java:62*)

      at
com.sungard.edison.ui.server.shiro.EndOfRequestFilter.doFilterInternal(*
EndOfRequestFilter.java:56*)

      at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(*
OncePerRequestFilter.java:81*)

      at com.google.inject.servlet.FilterDefinition.doFilter(*
FilterDefinition.java:163*)

      at com.google.inject.servlet.FilterChainInvocation.doFilter(*
FilterChainInvocation.java:58*)

      at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(*
ProxiedFilterChain.java:61*)

      at org.apache.shiro.web.servlet.AdviceFilter.executeChain(*
AdviceFilter.java:108*)

      at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(*
AdviceFilter.java:137*)

      at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(*
OncePerRequestFilter.java:81*)

      at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(*
ProxiedFilterChain.java:66*)

      at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(*
AbstractShiroFilter.java:359*)



Any idea?



Regards,







Shrivallabh

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message