https://issues.apache.org/bugzilla/show_bug.cgi?id=44667

           Summary: Upload Failing
           Product: Tomcat 5
           Version: 5.5.2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:AJP
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have two servers. 

The first one is the web server that has a Apache/2.2.4 (Ubuntu). 
I have a second server, the application server. This one has the
apache-tomcat-5.5.26.  
The http requests goes into apache and are redirected to the tomcat using the
AJP connector. 

I'm using the commons-fileupload-1.1.1.jar and the commons-io-1.3.1.jar to
handle file uploads.
Sometimes when a user uploads a file using a HTML form the applications throws
the following exception:

org.springframework.web.multipart.MultipartException: Could not parse multipart
servlet request; nested exception is
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly
Caused by: org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly
        at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:384)
        at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116)
        at
org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:117)
        at
org.springframework.web.servlet.DispatcherServlet.checkMultipart(DispatcherServlet.java:943)
        at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:797)
        at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
        at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
        at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:482)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
        at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)

I already increased the timeout on the apache. The AJP connector in the tomcat
is configured like this:

 <Connector port="8010" enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />

In the commons-fileupload i set the maxfilesize to 10Mb. This happens with
files  with size lower than 10Mb. Sometimes with the same file of 4MB it works
and then it doesn't.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to