Home  >  Forum  >  Hibernate
Post New Query

HibernateException: Access to DialectResolutionInfo cannot be null


joined on
April 01,2014
Asked on July 27,2014
 org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:104)
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:71)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:209)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)
at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1885)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1843)
at com.concretepage.HibernateUtil.<clinit>(HibernateUtil.java:12)

Got the above error, while creating hibernate application. Need Help.
joined on
October 10,2013
Replied on July 27,2014

This error comes when we create sessionFactory. In hibernate session factory can be created using StandardServiceRegistryBuilder. 

Configuration configuration = new Configuration().configure();
 StandardServiceRegistryBuilder builder = new            StandardServiceRegistryBuilder().applySettings(configuration.getProperties());
 SessionFactory  sessionFactory = configuration.buildSessionFactory(builder.build());


joined on
August 11,2014
Replied on May 14,2016

I have also faced the same error

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

And after trying all solutions, finally I found that my database was not up.

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us