java.lang.IndexOutOfBoundsException

index: 0, length: 33653 (expected: range(0, 578))

Solutions on the web7181

  • via Google Groups by yva, 6 months ago
    index: 0, length: 33653 (expected: range(0, 578))
  • via Google Groups by Alain Szalajski, 6 months ago
    index: 0, length: 18432 (expected: range(0, 1180))
  • via GitHub by msoute
    , 8 months ago
    index: 0, length: 1330 (expected: range(0, 1024))
  • Stack trace

    • java.lang.IndexOutOfBoundsException: index: 0, length: 33653 (expected: range(0, 578)) at io.netty.buffer.AbstractByteBuf.checkIndex0(AbstractByteBuf.java:1125)[netty-buffer-4.0.42.Final.jar:4.0.42.Final] at io.netty.buffer.SlicedByteBuf.getBytes(SlicedByteBuf.java:201)[netty-buffer-4.0.42.Final.jar:4.0.42.Final] at io.netty.buffer.AbstractByteBuf.getBytes(AbstractByteBuf.java:440)[netty-buffer-4.0.42.Final.jar:4.0.42.Final] at io.gatling.commons.util.ByteBufs$.io$gatling$commons$util$ByteBufs$$$anonfun$2(ByteBufs.scala:32)[gatling-commons-2.2.3.jar:2.2.3] at io.gatling.commons.util.ByteBufs$.io$gatling$commons$util$ByteBufs$$$anonfun$2$adapted(ByteBufs.scala:31)[gatling-commons-2.2.3.jar:2.2.3] at scala.collection.immutable.List.foreach(List.scala:381)[scala-library-2.11.8.jar:na] at io.gatling.commons.util.ByteBufs$.byteBufsToByteArray(ByteBufs.scala:31)[gatling-commons-2.2.3.jar:2.2.3] at io.gatling.http.response.ByteArrayResponseBody$.apply(ResponseBody.scala:90)[gatling-http-2.2.3.jar:2.2.3] at io.gatling.http.response.ResponseBuilder.build(ResponseBuilder.scala:189)[gatling-http-2.2.3.jar:2.2.3] at io.gatling.http.ahc.AsyncHandler.withResponse(AsyncHandler.scala:126)[gatling-http-2.2.3.jar:2.2.3] at io.gatling.http.ahc.AsyncHandler.onCompleted(AsyncHandler.scala:134)[gatling-http-2.2.3.jar:2.2.3] at io.gatling.http.ahc.AsyncHandler.onCompleted(AsyncHandler.scala:47)[gatling-http-2.2.3.jar:2.2.3] at org.asynchttpclient.netty.NettyResponseFuture.getContent(NettyResponseFuture.java:181)[async-http-client-2.0.24.jar:na] at org.asynchttpclient.netty.NettyResponseFuture.done(NettyResponseFuture.java:215)[async-http-client-2.0.24.jar:na] at org.asynchttpclient.netty.handler.HttpHandler.finishUpdate(HttpHandler.java:58)[async-http-client-2.0.24.jar:na] at org.asynchttpclient.netty.handler.HttpHandler.handleChunk(HttpHandler.java:159)[async-http-client-2.0.24.jar:na] at org.asynchttpclient.netty.handler.HttpHandler.handleRead(HttpHandler.java:187)[async-http-client-2.0.24.jar:na] at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.channelRead(AsyncHttpClientHandler.java:76)[async-http-client-2.0.24.jar:na] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:367)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:353)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:346)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:367)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:353)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:346)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)[netty-codec-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:367)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:353)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:346)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)[netty-codec-4.0.42.Final.jar:4.0.42.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:354)[netty-codec-4.0.42.Final.jar:4.0.42.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:325)[netty-codec-4.0.42.Final.jar:4.0.42.Final] at io.netty.handler.codec.http.HttpClientCodec$Decoder.channelInactive(HttpClientCodec.java:228)[netty-codec-http-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:220)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:251)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:237)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:230)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1289)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:251)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:237)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:893)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:691)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:408)[netty-common-4.0.42.Final.jar:4.0.42.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:455)[netty-transport-4.0.42.Final.jar:4.0.42.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)[netty-common-4.0.42.Final.jar:4.0.42.Final] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)[netty-common-4.0.42.Final.jar:4.0.42.Final] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_101]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.