Turn up ArrayIndexOutOfBoundsException to resolve out of memory problem