Print stack trace on IndexOutOfBoundsException