trying fix arrayIndexOutOfBoundsException, also lost hibernate.cfg