Home  >  Forum  >  Hibernate
Post New Query

HibernateException: Access to DialectResolutionInfo cannot be null



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.



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());





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








©2019 concretepage.com | Privacy Policy | Contact Us