jquery - Unable to upload large excel file with ajaxUpload() -


when trying import excel file using ajaxupload, small file able perform import. little larger excel file consisting of data close 2mb, below error.

here ajaxupload() inside jsp:

                    $.ajaxfileupload(                     {                         url:'pi/importpi.do?custnamefrmlist='+custnamefrmlist+'&nenamefrmlist='+nenamefrmlist+'&bindex='+bindex+'+&fullpath='+fullpath+'',                         type:"post",                         secureuri:false,                         fileelementid:'uploadfile',                         method:'post',                         //datatype: 'json',                         datatype: 'json',                         cache:false,                         async:false,                                                     success: function (data)                         {                         } 

apr 5, 2013 12:14:51 pm org.apache.catalina.core.standardwrappervalve invoke severe: servlet.service() servlet [dispatcher] in context path [/pmdb] threw exception [request processing failed; nested exception org.springframework.web.multipart.multipartexception: not parse multipart servlet request; nested exception org.apache.commons.fileupload.fileuploadbase$iofileuploadexception: processing of multipart/form-data request failed. connection reset] root cause java.net.socketexception: connection reset
at java.net.socketinputstream.read(socketinputstream.java:168)
@ org.apache.coyote.http11.internalinputbuffer.fill(internalinputbuffer.java:532) @ org.apache.coyote.http11.internalinputbuffer.fill(internalinputbuffer.java:501) @ org.apache.coyote.http11.internalinputbuffer$inputstreaminputbuffer.doread(internalinputbuffer.java:563) @ org.apache.coyote.http11.filters.identityinputfilter.doread(identityinputfilter.java:118) @ org.apache.coyote.http11.abstractinputbuffer.doread(abstractinputbuffer.java:341) @ org.apache.coyote.request.doread(request.java:422) @ org.apache.catalina.connector.inputbuffer.realreadbytes(inputbuffer.java:290) @ org.apache.tomcat.util.buf.bytechunk.substract(bytechunk.java:431) @ org.apache.catalina.connector.inputbuffer.read(inputbuffer.java:315) @ org.apache.catalina.connector.coyoteinputstream.read(coyoteinputstream.java:200) @ org.apache.commons.fileupload.multipartstream$iteminputstream.makeavailable(multipartstream.java:976) @ org.apache.commons.fileupload.multipartstream$iteminputstream.read(multipartstream.java:886) at java.io.inputstream.read(inputstream.java:85)
@ org.apache.commons.fileupload.util.streams.copy(streams.java:96) @ org.apache.commons.fileupload.util.streams.copy(streams.java:66) @ org.apache.commons.fileupload.fileuploadbase.parserequest(fileuploadbase.java:366) @ org.apache.commons.fileupload.servlet.servletfileupload.parserequest(servletfileupload.java:126) @ org.springframework.web.multipart.commons.commonsmultipartresolver.parserequest(commonsmultipartresolver.java:155) @ org.springframework.web.multipart.commons.commonsmultipartresolver.resolvemultipart(commonsmultipartresolver.java:138) @ org.springframework.web.servlet.dispatcherservlet.checkmultipart(dispatcherservlet.java:904) @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:747) @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:716) @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:644) @ org.springframework.web.servlet.frameworkservlet.dopost(frameworkservlet.java:560) @ javax.servlet.http.httpservlet.service(httpservlet.java:641) @ javax.servlet.http.httpservlet.service(httpservlet.java:722) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.netbeans.modules.web.monitor.server.monitorfilter.dofilter(monitorfilter.java:393) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:225) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:169) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:472) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:168) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:98) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:927) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:407) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:999) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:565) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:309) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:886) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:908) @ java.lang.thread.run(thread.java:662)

i think it's default tomcat post size limit preventing uploads > 2 mb.

check here solution:

http://vicker313.wordpress.com/2010/08/12/increase-or-make-unlimited-maximum-post-size-in-tomcat/


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -