New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gateway] Too many Response is closed logs #1352

Closed
brasseld opened this Issue Jun 29, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@brasseld
Member

brasseld commented Jun 29, 2018

08:36:27.258 [vert.x-eventloop-thread-4] [] ERROR io.vertx.core.impl.ContextImpl - Unhandled exception 
java.lang.IllegalStateException: Response is closed 
at io.vertx.core.http.impl.HttpServerResponseImpl.checkValid(HttpServerResponseImpl.java:548) 
at io.vertx.core.http.impl.HttpServerResponseImpl.putHeader(HttpServerResponseImpl.java:162) 
at io.vertx.core.http.impl.HttpServerResponseImpl.putHeader(HttpServerResponseImpl.java:53) 
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:676) 
at io.gravitee.common.http.HttpHeaders.forEach(HttpHeaders.java:389) 
at io.gravitee.gateway.standalone.vertx.VertxHttpServerResponse.writeHeaders(VertxHttpServerResponse.java:105) 
at io.gravitee.gateway.standalone.vertx.VertxHttpServerResponse.end(VertxHttpServerResponse.java:97) 
at io.gravitee.gateway.handlers.api.ApiReactorHandler.lambda$null$9(ApiReactorHandler.java:205) 
at io.gravitee.gateway.api.stream.SimpleReadWriteStream.end(SimpleReadWriteStream.java:53) 
at io.gravitee.gateway.handlers.api.ApiReactorHandler.lambda$null$12(ApiReactorHandler.java:218) 
at io.gravitee.gateway.http.vertx.VertxProxyResponse.resume(VertxProxyResponse.java:91) 
at io.gravitee.gateway.handlers.api.ApiReactorHandler.handleProxyResponse(ApiReactorHandler.java:231) 
at io.gravitee.gateway.handlers.api.ApiReactorHandler.lambda$null$1(ApiReactorHandler.java:156) 
at io.gravitee.gateway.http.vertx.VertxProxyConnection.handleResponse(VertxProxyConnection.java:83) 
at io.gravitee.gateway.http.vertx.VertxHttpClient.lambda$request$3(VertxHttpClient.java:119) 
at io.vertx.core.http.impl.HttpClientRequestBase.handleException(HttpClientRequestBase.java:130) 
at io.vertx.core.http.impl.HttpClientRequestImpl.handleException(HttpClientRequestImpl.java:50) 
at io.vertx.core.http.impl.Http1xClientConnection.handleClosed(Http1xClientConnection.java:730) 
at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:337) 
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:195) 
at io.vertx.core.net.impl.VertxHandler.channelInactive(VertxHandler.java:130) 
at io.vertx.core.http.impl.Http1xClientHandler.channelInactive(Http1xClientHandler.java:91) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) 
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) 
at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75) 
at io.netty.handler.timeout.IdleStateHandler.channelInactive(IdleStateHandler.java:277) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) 
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) 
at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75) 
at io.netty.handler.codec.http.HttpContentDecoder.channelInactive(HttpContentDecoder.java:205) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) 
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) 
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelInactive(CombinedChannelDuplexHandler.java:420) 
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:377) 
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342) 
at io.netty.handler.codec.http.HttpClientCodec$Decoder.channelInactive(HttpClientCodec.java:282) 
at io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:223) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) 
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) 
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1354) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) 
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) 
at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:917) 
at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:822) 
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) 
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) 
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) 
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) 
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) 
at java.lang.Thread.run(Thread.java:745) 

@brasseld brasseld added the type: bug label Jun 29, 2018

@brasseld brasseld added this to the 1.15.5 milestone Jun 29, 2018

@brasseld brasseld self-assigned this Jun 29, 2018

brasseld added a commit to gravitee-io/gravitee-gateway that referenced this issue Jun 29, 2018

NicolasGeraud added a commit to gravitee-io/gravitee-gateway that referenced this issue Jun 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment