You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "l-wang (via GitHub)" <gi...@apache.org> on 2024/07/02 16:56:59 UTC
[I] [Java] Incorrect message for IndexOutOfBoundsException in ArrowBuf.setBytes() [arrow]
l-wang opened a new issue, #43048:
URL: https://github.com/apache/arrow/issues/43048
### Describe the bug, including details regarding any error messages, version, and platform.
I am investigating an IndexOutOfBoundsException problem from the following stack trace.
```
(java.lang.IndexOutOfBoundsException) index: 0, length: 16 (expected: range(0, 16))
org.apache.arrow.memory.ArrowBuf.setBytes():960
org.apache.arrow.vector.DecimalVector.set():381
org.apache.arrow.vector.DecimalVector.setSafe():471
```
The detailed message of this exception `index: 0, length: 16 (expected: range(0, 16))` is not helpful, because the index and length are **within** the expected range. The problem is that the `index` that gets reported in this message is NOT the `index` that was checked.
arrow version: main
plateform: Linux
### Component(s)
Java
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org