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 java.lang.AbstractMethodError

Stack Overflow | russellhoff | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Your code probably has some syntax issue with how you're making the query request, more on this here: goo.gl/9wtLyd If your problem wasn't solved by that link, check this one as well: https://goo.gl/zBTzbl
  2. 0

    Spring-Boot and MySql unable to connect

    Stack Overflow | 2 weeks ago | agata
    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 javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
  3. 0

    Exception while running Spring boot cassandra project

    Stack Overflow | 1 year ago | ak123
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'session' defined in class path resource [org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfiguration.class]: Invocation of init method failed; nested exception is com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception while running Spring boot cassandra project - heapoverflow.me

    heapoverflow.me | 12 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'session' defined in class path resource [org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfiguration.class]: Invocation of init method failed; nested exception is com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
  6. 0

    @Before on @RequestMapping method not working in Spring boot

    Stack Overflow | 9 months ago | Manu
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryExporterHandlerAdapter' defined in class path resource [org/springframework/boot/autoconfigure/data/rest/SpringBootRepositoryRestMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.StackOverflowError

    4 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. java.lang.AbstractMethodError

      null

      at net.sourceforge.jtds.jdbc.JtdsConnection.isValid()
    2. jTDS
      JtdsConnection.isValid
      1. net.sourceforge.jtds.jdbc.JtdsConnection.isValid(JtdsConnection.java:2833)[jtds-1.3.1.jar:1.3.1]
      1 frame
    3. HikariCP-java6
      HikariDataSource.getConnection
      1. com.zaxxer.hikari.pool.PoolBase.checkDriverSupport(PoolBase.java:422)[HikariCP-2.6.0.jar:na]
      2. com.zaxxer.hikari.pool.PoolBase.setupConnection(PoolBase.java:393)[HikariCP-2.6.0.jar:na]
      3. com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:351)[HikariCP-2.6.0.jar:na]
      4. com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:196)[HikariCP-2.6.0.jar:na]
      5. com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:442)[HikariCP-2.6.0.jar:na]
      6. com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:505)[HikariCP-2.6.0.jar:na]
      7. com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:113)[HikariCP-2.6.0.jar:na]
      8. com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:97)[HikariCP-2.6.0.jar:na]
      8 frames
    4. org.hibernate.engine
      JdbcEnvironmentInitiator.initiateService
      1. org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      2. org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      3. org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      4. org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      4 frames
    5. org.hibernate.boot
      StandardServiceRegistryImpl.initiateService
      1. org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      1 frame
    6. Hibernate
      JdbcServicesImpl.configure
      1. org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:257)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      2. org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:231)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      3. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      4. org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      4 frames
    7. org.hibernate.boot
      StandardServiceRegistryImpl.configureService
      1. org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      1 frame
    8. Hibernate
      AbstractServiceRegistryImpl.getService
      1. org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:240)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      2. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      2 frames
    9. org.hibernate.boot
      MetadataBuildingProcess.complete
      1. org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      2. org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      2 frames
    10. org.hibernate.jpa
      EntityManagerFactoryBuilderImpl.build
      1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:858)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      2. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:885)[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
      2 frames
    11. Spring ORM
      AbstractEntityManagerFactoryBean.afterPropertiesSet
      1. org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)[spring-orm-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      2. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:353)[spring-orm-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      3. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:373)[spring-orm-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      4. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:362)[spring-orm-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      4 frames
    12. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      8 frames
    13. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)[spring-context-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:856)[spring-context-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.6.RELEASE.jar:4.3.6.RELEASE]
      3 frames
    14. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
      3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1162)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1151)[spring-boot-1.5.1.RELEASE.jar:1.5.1.RELEASE]
      6 frames
    15. com.ingartek.ws
      PrestacionesPoliticasSocialesInternoApplication.main
      1. com.ingartek.ws.pps.PrestacionesPoliticasSocialesInternoApplication.main(PrestacionesPoliticasSocialesInternoApplication.java:26)[classes/:na]
      1 frame