That JVM is fussy about you're using indexes that go past the end of an array.
Check your code to be sure you do not allow that to happen.