ArrayIndexOutOfBoundsException in config