In this post, we will learn to fix a HibernateException that says Caused by:org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null
. The complete error will look like the below:
Caused by:org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
When you are getting this error then the possible causes are:
- Database server is running but database does not exist. This means, the database we are trying to connect hasn’t been created yet.
- Database server is running/up but the credentials are wrong.
If you verify these things then you are likely to fix the issue.