struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Monkeyden <monkey...@gmail.com>
Subject Re: Stream ended unexpectedly
Date Tue, 08 Aug 2006 20:47:17 GMT
This is where I was going with it:

Search for maxFileSize.  Default is 250M, which sounds big.

http://struts.apache.org/1.2.x/userGuide/configuration.html#struts-config


On 8/8/06, Monkeyden <monkeyden@gmail.com> wrote:
>
> How big is the file?
>
>
> On 8/8/06, Jon Koberstein <jkoberstein@ucoast.com> wrote:
> >
> > We are using struts to develop an online classifieds site. While
> > uploading pictures for the classified a few clients get the error
> > message given below. We spoke briefly with one of the clients that is
> > having this problem and he was using a DSL connection and uploading a
> > picture of size 200k. We haven't been able to reproduce the error using
> > our own equipment. When the error occurs execution appears to end before
> > our command is even called. Any ideas or suggestions would be greatly
> > appreciated!
> >
> > Thanks
> > Jon
> >
> > ==========================================================
> > =The browser shows this error
> > ==========================================================
> >
> > HTTP Status 500 -
> > ------------------------------------------------------------------------
> >
> > type Exception report
> >
> > message
> >
> > description The server encountered an internal error () that prevented
> > it from fulfilling this request.
> >
> > exception
> >
> > javax.servlet.ServletException: Processing of multipart/form-data
> > request failed. Stream ended unexpectedly
> >
> > org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
> > CommonsMultipartRequestHandler.java:204)
> > org.apache.struts.util.RequestUtils.populate(RequestUtils.java :445)
> > org.apache.struts.action.RequestProcessor.processPopulate(
> > RequestProcessor.java:798)
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
> > :205)
> > org.apache.struts.action.ActionServlet.process (ActionServlet.java:1164)
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java :802)
> >
> > root cause
> >
> > org.apache.commons.fileupload.FileUploadException: Processing of
> > multipart/form-data request failed. Stream ended unexpectedly
> > org.apache.commons.fileupload.FileUploadBase.parseRequest (
> > FileUploadBase.java:429)
> > org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
> > CommonsMultipartRequestHandler.java:195)
> > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:445)
> > org.apache.struts.action.RequestProcessor.processPopulate (
> > RequestProcessor.java:798)
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
> > :205)
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> > org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:415)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> > ==========================================================
> > =In our logs we see this error.
> > ==========================================================
> >
> > Failed to parse multipart request
> > org.apache.commons.fileupload.FileUploadException: Processing of
> > multipart/form-data request failed. Stream ended unexpectedly
> >        at
> > org.apache.commons.fileupload.FileUploadBase.parseRequest(
> > FileUploadBase.java:429)
> >        at
> > org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
> > CommonsMultipartRequestHandler.java :195)
> >        at
> > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:445)
> >        at
> > org.apache.struts.action.RequestProcessor.processPopulate(
> > RequestProcessor.java:798)
> >        at
> > org.apache.struts.action.RequestProcessor.process (RequestProcessor.java
> > :205)
> >        at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> >        at
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> >        at javax.servlet.http.HttpServlet.service (HttpServlet.java:709)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:252)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> >        at
> > org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:213)
> >        at
> > org.apache.catalina.core.StandardContextValve.invoke (
> > StandardContextValve.java:178)
> >        at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> > :126)
> >        at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> > :105)
> >        at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:107)
> >        at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> > :148)
> >        at
> > org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler.java:307)
> >        at
> > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
> >        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
> > :748)
> >        at
> > org.apache.jk.common.ChannelSocket.processConnection (ChannelSocket.java
> > :678)
> >        at
> > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
> >        at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:684)
> >        at java.lang.Thread.run(Thread.java:595)
> > Tue Aug 8 2006 01:15:47 PM ERROR: Servlet.service() for servlet action
> > threw exception
> > org.apache.commons.fileupload.FileUploadException: Processing of
> > multipart/form-data request failed. Stream ended unexpectedly
> >        at
> > org.apache.commons.fileupload.FileUploadBase.parseRequest(
> > FileUploadBase.java:429)
> >        at
> > org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(
> > CommonsMultipartRequestHandler.java :195)
> >        at
> > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:445)
> >        at
> > org.apache.struts.action.RequestProcessor.processPopulate(
> > RequestProcessor.java:798)
> >        at
> > org.apache.struts.action.RequestProcessor.process (RequestProcessor.java
> > :205)
> >        at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> >        at
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> >        at javax.servlet.http.HttpServlet.service (HttpServlet.java:709)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:252)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> >        at
> > org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:213)
> >        at
> > org.apache.catalina.core.StandardContextValve.invoke (
> > StandardContextValve.java:178)
> >        at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> > :126)
> >        at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> > :105)
> >        at
> > org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:107)
> >        at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> > :148)
> >        at
> > org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler.java:307)
> >        at
> > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
> >        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
> > :748)
> >        at
> > org.apache.jk.common.ChannelSocket.processConnection (ChannelSocket.java
> > :678)
> >        at
> > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
> >        at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:684)
> >        at java.lang.Thread.run(Thread.java:595)
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>

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