Error: Could Not Find or Load Main Class

Caused by:org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set

Updated:

By

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:

  1. Database server is running but database does not exist. This means, the database we are trying to connect hasn’t been created yet.
  2. Database server is running/up but the credentials are wrong.

If you verify these things then you are likely to fix the issue.


Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments