everything works, still getting java exception