Raise exception when not configure the Repository and Aapapter properly