java.lang.IndexOutOfBoundsException: index: 0, length: 33653 (expected: range(0, 578))

Google Groups | yva | 3 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    IndexOutOfBoundsException during check on bodyBytes

    Google Groups | 3 months ago | yva
    java.lang.IndexOutOfBoundsException: index: 0, length: 33653 (expected: range(0, 578))
  2. 0

    Transform response to read json compressed data

    Google Groups | 4 months ago | Alain Szalajski
    java.lang.IndexOutOfBoundsException: index: 0, length: 18432 (expected: range(0, 1180))
  3. 0

    OOM on gatling

    Google Groups | 4 years ago | Shawna Qian
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Race condition in CompositeByteBuf

    GitHub | 3 years ago | mkw
    java.lang.IndexOutOfBoundsException: index: 44, length: 9 (expected: range(0, 125104))

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

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

      at io.netty.buffer.AbstractByteBuf.checkIndex0()
    2. Netty
      AbstractByteBuf.getBytes
      1. io.netty.buffer.AbstractByteBuf.checkIndex0(AbstractByteBuf.java:1125)[netty-buffer-4.0.42.Final.jar:4.0.42.Final]
      2. io.netty.buffer.SlicedByteBuf.getBytes(SlicedByteBuf.java:201)[netty-buffer-4.0.42.Final.jar:4.0.42.Final]
      3. io.netty.buffer.AbstractByteBuf.getBytes(AbstractByteBuf.java:440)[netty-buffer-4.0.42.Final.jar:4.0.42.Final]
      3 frames
    3. io.gatling.commons
      ByteBufs$.io$gatling$commons$util$ByteBufs$$$anonfun$2$adapted
      1. io.gatling.commons.util.ByteBufs$.io$gatling$commons$util$ByteBufs$$$anonfun$2(ByteBufs.scala:32)[gatling-commons-2.2.3.jar:2.2.3]
      2. 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]
      2 frames
    4. Scala
      List.foreach
      1. scala.collection.immutable.List.foreach(List.scala:381)[scala-library-2.11.8.jar:na]
      1 frame
    5. io.gatling.commons
      ByteBufs$.byteBufsToByteArray
      1. io.gatling.commons.util.ByteBufs$.byteBufsToByteArray(ByteBufs.scala:31)[gatling-commons-2.2.3.jar:2.2.3]
      1 frame
    6. gatling-http
      AsyncHandler.onCompleted
      1. io.gatling.http.response.ByteArrayResponseBody$.apply(ResponseBody.scala:90)[gatling-http-2.2.3.jar:2.2.3]
      2. io.gatling.http.response.ResponseBuilder.build(ResponseBuilder.scala:189)[gatling-http-2.2.3.jar:2.2.3]
      3. io.gatling.http.ahc.AsyncHandler.withResponse(AsyncHandler.scala:126)[gatling-http-2.2.3.jar:2.2.3]
      4. io.gatling.http.ahc.AsyncHandler.onCompleted(AsyncHandler.scala:134)[gatling-http-2.2.3.jar:2.2.3]
      5. io.gatling.http.ahc.AsyncHandler.onCompleted(AsyncHandler.scala:47)[gatling-http-2.2.3.jar:2.2.3]
      5 frames
    7. org.asynchttpclient.netty
      AsyncHttpClientHandler.channelRead
      1. org.asynchttpclient.netty.NettyResponseFuture.getContent(NettyResponseFuture.java:181)[async-http-client-2.0.24.jar:na]
      2. org.asynchttpclient.netty.NettyResponseFuture.done(NettyResponseFuture.java:215)[async-http-client-2.0.24.jar:na]
      3. org.asynchttpclient.netty.handler.HttpHandler.finishUpdate(HttpHandler.java:58)[async-http-client-2.0.24.jar:na]
      4. org.asynchttpclient.netty.handler.HttpHandler.handleChunk(HttpHandler.java:159)[async-http-client-2.0.24.jar:na]
      5. org.asynchttpclient.netty.handler.HttpHandler.handleRead(HttpHandler.java:187)[async-http-client-2.0.24.jar:na]
      6. org.asynchttpclient.netty.handler.AsyncHttpClientHandler.channelRead(AsyncHttpClientHandler.java:76)[async-http-client-2.0.24.jar:na]
      6 frames
    8. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:367)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:353)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:346)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      4. io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:367)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:353)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      7. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:346)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      8. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)[netty-codec-4.0.42.Final.jar:4.0.42.Final]
      9. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:367)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      10. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:353)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      11. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:346)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      12. io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      13. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)[netty-codec-4.0.42.Final.jar:4.0.42.Final]
      14. io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:354)[netty-codec-4.0.42.Final.jar:4.0.42.Final]
      15. io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:325)[netty-codec-4.0.42.Final.jar:4.0.42.Final]
      16. io.netty.handler.codec.http.HttpClientCodec$Decoder.channelInactive(HttpClientCodec.java:228)[netty-codec-http-4.0.42.Final.jar:4.0.42.Final]
      17. io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:220)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      18. io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:251)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      19. io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:237)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      20. io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:230)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      21. io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1289)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      22. io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:251)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      23. io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:237)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      24. io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:893)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      25. io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:691)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      26. io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:408)[netty-common-4.0.42.Final.jar:4.0.42.Final]
      27. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:455)[netty-transport-4.0.42.Final.jar:4.0.42.Final]
      28. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)[netty-common-4.0.42.Final.jar:4.0.42.Final]
      29. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)[netty-common-4.0.42.Final.jar:4.0.42.Final]
      29 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_101]
      1 frame