struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shriram <shri1984...@gmail.com>
Subject FileUploadBase$UnknownSizeException: the request was rejected because its size is unknown
Date Tue, 15 Jul 2014 12:17:31 GMT
I am using struts1 and apache.commons.fileupload1.0 to upload a file of size
more than 4 GB[may change] results in the below exception. I have gone
through struts fileupload api which mentions 256M is  the maximum limit. Is
it possible to upload a huge file size of more than 4GB ? How to change the
default limit 256M to higher limit?. If it is not possible is there any way
to upload a file in struts1?

 [org.apache.struts.upload.CommonsMultipartRequestHandler -> handleRequest]
(CommonsMultipartRequestHandler.java:190) - Failed to parse multipart
request
org.apache.commons.fileupload.FileUploadBase$UnknownSizeException: the
request was rejected because its size is unknown
        at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:305)
        at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268)
        at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:182)
        at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:389)        
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:191)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)       
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)

I have tried upto 256M limit it works fine.




--
View this message in context: http://struts.1045723.n5.nabble.com/FileUploadBase-UnknownSizeException-the-request-was-rejected-because-its-size-is-unknown-tp5716405.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message