java - Error Glassfish 4.1 -


i have project in java, servlets 3.1, uses ajax in different parts of application. has several multipart forms. every few hours jumping following error:

 java.io.ioexception: java.util.concurrent.timeoutexception @ org.glassfish.grizzly.nio.transport.tcpniotransportfilter.handleread(tcpniotransportfilter.java:90) @ org.glassfish.grizzly.filterchain.transportfilter.handleread(transportfilter.java:173) @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:284) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:201) @ org.glassfish.grizzly.filterchain.defaultfilterchain.read(defaultfilterchain.java:351) @ org.glassfish.grizzly.filterchain.filterchaincontext.read(filterchaincontext.java:695) @ org.glassfish.grizzly.http.io.inputbuffer.blockingread(inputbuffer.java:1119) @ org.glassfish.grizzly.http.server.io.serverinputbuffer.blockingread(serverinputbuffer.java:95) @ org.glassfish.grizzly.http.io.inputbuffer.fill(inputbuffer.java:1143) @ org.glassfish.grizzly.http.io.inputbuffer.read(inputbuffer.java:353) @ org.apache.catalina.connector.inputbuffer.read(inputbuffer.java:267) @ org.apache.catalina.connector.coyoteinputstream.read(coyoteinputstream.java:270) @ org.apache.catalina.fileupload.multipartstream$iteminputstream.makeavailable(multipartstream.java:977) @ org.apache.catalina.fileupload.multipartstream$iteminputstream.read(multipartstream.java:888) @ java.io.inputstream.read(inputstream.java:101) @ org.apache.catalina.fileupload.streams.copy(streams.java:137) @ org.apache.catalina.fileupload.streams.copy(streams.java:107) @ org.apache.catalina.fileupload.multipart.initparts(multipart.java:154) @ org.apache.catalina.fileupload.multipart.getpart(multipart.java:190) @ org.apache.catalina.connector.request.getpart(request.java:4546) @ org.apache.catalina.connector.requestfacade.getpart(requestfacade.java:1095) @ controller.fileuploadservletpatheasyread.dopost(fileuploadservletpatheasyread.java:93) @ javax.servlet.http.httpservlet.service(httpservlet.java:707) @ javax.servlet.http.httpservlet.service(httpservlet.java:790) @ org.apache.catalina.core.standardwrapper.service(standardwrapper.java:1682) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:318) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:160) @ org.apache.catalina.core.standardpipeline.doinvoke(standardpipeline.java:734) @ org.apache.catalina.core.standardpipeline.invoke(standardpipeline.java:673) @ com.sun.enterprise.web.webpipeline.invoke(webpipeline.java:99) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:174) @ org.apache.catalina.connector.coyoteadapter.doservice(coyoteadapter.java:415) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:282) @ com.sun.enterprise.v3.services.impl.containermapper$httphandlercallable.call(containermapper.java:459) @ com.sun.enterprise.v3.services.impl.containermapper.service(containermapper.java:167) @ org.glassfish.grizzly.http.server.httphandler.runservice(httphandler.java:201) @ org.glassfish.grizzly.http.server.httphandler.dohandle(httphandler.java:175) @ org.glassfish.grizzly.http.server.httpserverfilter.handleread(httpserverfilter.java:235) @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:284) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:201) @ org.glassfish.grizzly.filterchain.defaultfilterchain.execute(defaultfilterchain.java:133) @ org.glassfish.grizzly.filterchain.defaultfilterchain.process(defaultfilterchain.java:112) @ org.glassfish.grizzly.processorexecutor.execute(processorexecutor.java:77) @ org.glassfish.grizzly.nio.transport.tcpniotransport.fireioevent(tcpniotransport.java:561) @ org.glassfish.grizzly.strategies.abstractiostrategy.fireioevent(abstractiostrategy.java:112) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.run0(workerthreadiostrategy.java:117) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.access$100(workerthreadiostrategy.java:56) @ org.glassfish.grizzly.strategies.workerthreadiostrategy$workerthreadrunnable.run(workerthreadiostrategy.java:137) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.dowork(abstractthreadpool.java:565) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.run(abstractthreadpool.java:545) @ java.lang.thread.run(thread.java:722) caused by: java.util.concurrent.timeoutexception @ org.glassfish.grizzly.nio.tmpselectors.temporaryselectorreader.read(temporaryselectorreader.java:126) @ org.glassfish.grizzly.nio.tmpselectors.temporaryselectorreader.read(temporaryselectorreader.java:75) @ org.glassfish.grizzly.abstractreader.read(abstractreader.java:72) @ org.glassfish.grizzly.nio.transport.tcpniotransportfilter.handleread(tcpniotransportfilter.java:77) ... 52 more]] 

the line generates exception in servlet is: part filepart = request.getpart("files[]");

i have following code in ajax javascript:

<script>  $(function () {                              $('#fileuploadpatheasyread<%=p.getidpath()%>').fileupload({                                  datatype: 'json',                                  timeout: 50000,                                  add: function (e, data) {                                      var goupload = true;                                      var uploadfile = data.files[0];                                      if (!(/\.(gif|jpg|jpeg|tiff|png)$/i).test(uploadfile.name)) {                                          alert('the extension of image file not correct');                                          goupload = false;                                      }                                      if (uploadfile.size > 2097152) { // 2mb                                          alert('please upload smaller image, max size 2 mb');                                          goupload = false;                                      }                                      if (goupload == true) {                                          data.submit();                                      }                                  },                                  done: function (e, data) {                                      $.each(data.result, function (index, file) {                                                                                 });                                   },                                  fail: function (e, data) {                                      alert("error")                                  },                                  progressall: function (e, data) {                                                                           },                                                                     dropzone: $('#dropzone<%=p.getidpath()%>')                              }).bind('fileuploadsubmit', function (e, data) {                                   });                          });                      </script>


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -