java.lang.IndexOutOfBoundsException: index: 8, length: 4 (expected: range(0, 8))

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 incubator-drill-user by Timothy Chen, 1 year ago
index: 8, length: 4 (expected: range(0, 8))
via incubator-drill-user by Vivekanand Ittigi, 1 year ago
index: 8, length: 4 (expected: range(0, 8))
via incubator-drill-user by Vivekanand Ittigi, 1 year ago
index: 8, length: 4 (expected: range(0, 8))
via incubator-drill-user by Jinfeng Ni, 1 year ago
index: 31999268, length: 4 (expected: range(0, 4194244))
via GitHub by msoute
, 1 year ago
index: 0, length: 1330 (expected: range(0, 1024))
java.lang.IndexOutOfBoundsException: index: 8, length: 4 (expected: range(0, 8))
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1130)
at io.netty.buffer.AbstractByteBuf.getInt(AbstractByteBuf.java:378)
at org.apache.drill.exec.vector.UInt4Vector$Accessor.get(UInt4Vector.java:188)
at org.apache.drill.exec.vector.VarCharVector$Accessor.get(VarCharVector.java:238)
at org.apache.drill.exec.vector.VarCharVector$Accessor.getObject(VarCharVector.java:258)
at org.apache.drill.exec.vector.NullableVarCharVector$Accessor.getObject(NullableVarCharVector.java:245)
at org.apache.drill.sql.client.full.JsonHelper.get(JsonHelper.java:41)
at org.apache.drill.sql.client.full.BatchLoaderMap.getCurrentObject(BatchLoaderMap.java:112)
at org.apache.drill.sql.client.full.ResultEnumerator.moveNext(ResultEnumerator.java:51)
at net.hydromatic.optiq.runtime.ObjectEnumeratorCursor.next(ObjectEnumeratorCursor.java:44)
at sqlline.SqlLine$BufferedRows.(SqlLine.java:2499)
at sqlline.SqlLine.print(SqlLine.java:1886)
at sqlline.SqlLine$Commands.execute(SqlLine.java:3835)
at sqlline.SqlLine$Commands.sql(SqlLine.java:3738)
at sqlline.SqlLine.dispatch(SqlLine.java:882)
at sqlline.SqlLine.begin(SqlLine.java:717)
at sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:460)
at sqlline.SqlLine.main(SqlLine.java:443)

Users with the same issue

You are the first who have seen this exception.

Write tip

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