Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] File upload failing with InterruptedException in Jetty serer

Hi Guys,

In my project we have a file upload feature where file upload works fine within a network i..e where upload speed is good. But if I upload file through VPN then speed becomes slow and file upload fails.We have apache as a reverse proxy between browser and jetty server. The file upload fails at exactly 10 minutes after file upload starts. I tried increasing the timeouts - HttpConfiguration -> idle timeout and queued thread pool timeout to higher values, but it still fails. 

I am getting below exception, can someone guide me what is the possible cause of the  java.lang.InterruptedException? This happens exactly after 10 minutes of the upload request received by Jetty server. (I am using jetty-9.4.35.v20201120).

021-01-27/15:09:58.870/UTC [qtp1253396693-94] ERROR consoleOutput - java.io.IOException: java.lang.InterruptedException
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpInput$ErrorState.noContent(HttpInput.java:1124)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:333)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.message.internal.EntityInputStream.read(EntityInputStream.java:102)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at c
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.jvnet.mimepull.MIMEParser.fillBuf(MIMEParser.java:445)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.jvnet.mimepull.MIMEParser.readBody(MIMEParser.java:221)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.jvnet.mimepull.MIMEParser.access$600(MIMEParser.java:68)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:170)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:132)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.jvnet.mimepull.MIMEMessage.makeProgress(MIMEMessage.java:228)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.jvnet.mimepull.MIMEMessage.parseAll(MIMEMessage.java:189)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.jvnet.mimepull.MIMEMessage.getAttachments(MIMEMessage.java:115)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide.getMimeParts(MultiPartReaderClientSide.java:272)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide.readMultiPart(MultiPartReaderClientSide.java:231)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.media.multipart.internal.MultiPartReaderServerSide.readMultiPart(MultiPartReaderServerSide.java:91)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide.readFrom(MultiPartReaderClientSide.java:183)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide.readFrom(MultiPartReaderClientSide.java:93)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:256)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:235)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:155)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundReadFrom(MappableExceptionWrapperInterceptor.java:74)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:155)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1085)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:852)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:786)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.ContainerRequest.readEntity(ContainerRequest.java:233)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.media.multipart.internal.FormDataParamValueFactoryProvider$ValueFactory.getEntity(FormDataParamValueFactoryProvider.java:132)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.media.multipart.internal.FormDataParamValueFactoryProvider$FormDataMultiPartFactory.provide(FormDataParamValueFactoryProvider.java:146)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.media.multipart.internal.FormDataParamValueFactoryProvider$FormDataMultiPartFactory.provide(FormDataParamValueFactoryProvider.java:142)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.spi.internal.ParamValueFactoryWithSource.provide(ParamValueFactoryWithSource.java:71)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.spi.internal.ParameterValueHelper.getParameterValues(ParameterValueHelper.java:93)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$AbstractMethodParamInvoker.getParamValues(JavaResourceMethodDispatcherProvider.java:127)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:791)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at com.attivo.servlet.listeners.PayloadSanitizerFilter.doFilter(PayloadSanitizerFilter.java:106)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at com.attivo.servlet.listeners.CSRFTokenValidationFilter.doFilter(CSRFTokenValidationFilter.java:88)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at com.attivo.servlet.listeners.SessionHijackValidationFilter.doFilter(SessionHijackValidationFilter.java:88)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at com.attivo.servlet.SessionValidationFilter.doFilter(SessionValidationFilter.java:296)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at com.attivo.servlet.listeners.RequestLoggingListener.doFilter(RequestLoggingListener.java:71)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlets.DoSFilter.doFilterChain(DoSFilter.java:487)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlets.DoSFilter.doFilter(DoSFilter.java:336)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlets.DoSFilter.doFilter(DoSFilter.java:301)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.Server.handle(Server.java:516)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at java.lang.Thread.run(Thread.java:748)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - Caused by: java.lang.InterruptedException
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at java.lang.Object.wait(Native Method)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at java.lang.Object.wait(Object.java:502)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpInput.blockForContent(HttpInput.java:580)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpInput$1.blockForContent(HttpInput.java:1139)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:330)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - ... 97 more
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - Suppressed: java.lang.Throwable: HttpInput failure
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpInput.failed(HttpInput.java:871)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpConnection$BlockingReadCallback.failed(HttpConnection.java:638)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpConnection.blockingReadFailure(HttpConnection.java:579)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpChannelOverHttp.onBlockWaitForContentFailure(HttpChannelOverHttp.java:265)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - at org.eclipse.jetty.server.HttpInput.blockForContent(HttpInput.java:587)
2021-01-27/15:09:58.871/UTC [qtp1253396693-94] ERROR consoleOutput - ... 99 more

Back to the top