Trap, record read and throw ArrayIndexOutOfBoundsException