java.lang.IndexOutOfBoundsException: index: 21, length: 1 (expected: range(0, 21))

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by normanmaurer
, 1 year ago
index: 21, length: 1 (expected: range(0, 21))
via GitHub by npordash
, 1 year ago
index: 21, length: 1 (expected: range(0, 21))
via GitHub by valodzka
, 1 year ago
index: 3, length: 13 (expected: range(0, 13))
via Stack Overflow by Kaleb Blue
, 1 year ago
index: 64, length: 1 (expected: range(0, 64))
via Google Groups by yva, 10 months ago
index: 0, length: 33653 (expected: range(0, 578))
via GitHub by StuSchrader
, 1 year ago
index: 16, length: 16 (expected: range(0, 16))
java.lang.IndexOutOfBoundsException: index: 21, length: 1 (expected: range(0, 21))
at io.netty.buffer.AbstractByteBuf.checkIndex0(AbstractByteBuf.java:1359)
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1354)
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1349)
at io.netty.buffer.CompositeByteBuf.findComponent(CompositeByteBuf.java:1407)
at io.netty.buffer.CompositeByteBuf._getByte(CompositeByteBuf.java:751)
at io.netty.buffer.AbstractByteBuf.forEachByteDesc0(AbstractByteBuf.java:1297)

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.

Know the solutions? Share your knowledge to help other developers to debug faster.