java.lang.ExceptionInInitializerError

com.br | 1 month ago
  1. 0

    nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service 'entityManagerFactory'

    Stack Overflow | 1 month ago | Drew1208
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Exception Error: Unable to create requested service [org.hibernate.service.jta.platform.spi.JtaPlatform]

    Stack Overflow | 8 months ago | user2797422
    org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform]
  4. 0

    Unable to resolve name [${hibernate.ejb.naming_strategy}] as strategy

    Stack Overflow | 1 year ago | Michael Coxon
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in au.com.auspost.docmaker.PersistenceTestConfig: Invocation of init method failed; nested exception is org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [${hibernate.ejb.naming_strategy}] as strategy [org.hibernate.cfg.NamingStrategy]

  1. 0x60 1 times, last 6 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.boot.registry.selector.spi.StrategySelectionException

    Unable to resolve name [org.hibernate.dialect.MySQLInnoDialect] as strategy [org.hibernate.dialect.Dialect]

    at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor()
  2. org.hibernate.boot
    StrategySelectorImpl.resolveStrategy
    1. org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:113)
    2. org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:162)
    3. org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:126)
    4. org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:120)
    4 frames
  3. org.hibernate.engine
    JdbcEnvironmentInitiator.initiateService
    1. org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:74)
    2. org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:51)
    3. org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
    4. org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
    4 frames
  4. org.hibernate.boot
    StandardServiceRegistryImpl.initiateService
    1. org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
    1 frame
  5. Hibernate
    JdbcServicesImpl.configure
    1. org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)
    2. org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)
    3. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
    4. org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
    4 frames
  6. org.hibernate.boot
    StandardServiceRegistryImpl.configureService
    1. org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
    1 frame
  7. Hibernate
    AbstractServiceRegistryImpl.getService
    1. org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)
    2. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
    2 frames
  8. org.hibernate.boot
    MetadataBuilderImpl.build
    1. org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
    2. org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
    3. org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
    4. org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
    5. org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
    5 frames
  9. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:692)
    2. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)
    2 frames
  10. projetofarmacia.conexao
    HibernateUtil.<clinit>
    1. projetofarmacia.conexao.HibernateUtil.<clinit>(HibernateUtil.java:25)
    1 frame
  11. projetofarmacia
    ProjetoFarmacia.main
    1. projetofarmacia.ProjetoFarmacia.main(ProjetoFarmacia.java:59)
    1 frame