-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
1.3.1.Final
-
None
Every 1 out of 10 request fails on the Vert.x gateway with below error:
[ERROR] 2017-10-02 13:10:39.056 [vert.x-eventloop-thread-2] ContextImpl - Unhandled exception
java.lang.IndexOutOfBoundsException: writerIndex: 295 (expected: readerIndex(0) <= writerIndex <= capacity(1))
at io.netty.buffer.AbstractByteBuf.writerIndex(AbstractByteBuf.java:118) ~[apiman-gateway.jar:?]
at io.netty.buffer.CompositeByteBuf.writerIndex(CompositeByteBuf.java:1686) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.HttpClientRequestImpl.write(HttpClientRequestImpl.java:851) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.HttpClientRequestImpl.write(HttpClientRequestImpl.java:228) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.HttpClientRequestImpl.write(HttpClientRequestImpl.java:51) ~[apiman-gateway.jar:?]
at io.apiman.gateway.platforms.vertx3.connector.HttpConnector.write(HttpConnector.java:265) ~[apiman-gateway.jar:?]
at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl.lambda$null$1(ApiRequestExecutorImpl.java:264) ~[apiman-gateway.jar:?]
at io.apiman.gateway.engine.io.AbstractStream.handleBody(AbstractStream.java:107) ~[apiman-gateway.jar:?]
at io.apiman.gateway.engine.policy.Chain.write(Chain.java:181) ~[apiman-gateway.jar:?]
at io.apiman.gateway.engine.impl.ApiRequestExecutorImpl$3.write(ApiRequestExecutorImpl.java:736) ~[apiman-gateway.jar:?]
at io.apiman.gateway.platforms.vertx3.http.HttpPolicyAdapter.lambda$null$2(HttpPolicyAdapter.java:99) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.HttpServerRequestImpl.handleData(HttpServerRequestImpl.java:373) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.ServerConnection.handleChunk(ServerConnection.java:296) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.ServerConnection.processMessage(ServerConnection.java:427) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.ServerConnection.handleMessage(ServerConnection.java:134) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.HttpServerImpl$ServerHandler.doMessageReceived(HttpServerImpl.java:666) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.HttpServerImpl$ServerHandler.doMessageReceived(HttpServerImpl.java:573) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.VertxHttpHandler.lambda$channelRead$0(VertxHttpHandler.java:71) ~[apiman-gateway.jar:?]
at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:322) ~[apiman-gateway.jar:?]
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:190) ~[apiman-gateway.jar:?]
at io.vertx.core.http.impl.VertxHttpHandler.channelRead(VertxHttpHandler.java:71) ~[apiman-gateway.jar:?]
at io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:122) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341) ~[apiman-gateway.jar:?]
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341) ~[apiman-gateway.jar:?]
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) ~[apiman-gateway.jar:?]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341) ~[apiman-gateway.jar:?]
at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1228) ~[apiman-gateway.jar:?]
at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1039) ~[apiman-gateway.jar:?]
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411) ~[apiman-gateway.jar:?]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341) ~[apiman-gateway.jar:?]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[apiman-gateway.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) ~[apiman-gateway.jar:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) ~[apiman-gateway.jar:?]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129) ~[apiman-gateway.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:642) ~[apiman-gateway.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:565) ~[apiman-gateway.jar:?]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:479) ~[apiman-gateway.jar:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:441) ~[apiman-gateway.jar:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[apiman-gateway.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]