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

Stack Overflow | user2035039 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Spring Boot + MySQL5: Errcode 13

    Stack Overflow | 6 months ago | user2035039
    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
  2. 0

    could not get table metadata: JBPM_VARIABLEINSTANCE | Alfresco Forums

    alfresco.com | 2 years ago
    org.hibernate.exception.GenericJDBCException: could not get table metadata: JBPM_VARIABLEINSTANCE
  3. 0

    Can't refresh MySQL DB structure

    YouTrack | 4 years ago
    java.sql.SQLException: Can't find file: 'CAMPAIGN_SITE_STAT_CACHE' (errno: 2)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem with Archiva 1.1.3 under Glassfish with MySQL

    archiva-users | 8 years ago | Paul Kuykendall
    java.sql.SQLException: Can't create/write to file 'C:\WINDOWS\TEMP\#sql_968_0.MYI' (Errcode: 13)

    Root Cause Analysis

    1. java.sql.SQLException

      Error on delete of 'C:\xampp\tmp\#sql1068_9_2.MYI' (Errcode: 13 - Permission denied)

      at com.mysql.jdbc.SQLError.createSQLException()
    2. MySQL jdbc
      DatabaseMetaData.getColumns
      1. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:963)[mysql-connector-java-5.1.39.jar:5.1.39]
      2. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966)[mysql-connector-java-5.1.39.jar:5.1.39]
      3. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902)[mysql-connector-java-5.1.39.jar:5.1.39]
      4. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:875)[mysql-connector-java-5.1.39.jar:5.1.39]
      5. com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1991)[mysql-connector-java-5.1.39.jar:5.1.39]
      6. com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3403)[mysql-connector-java-5.1.39.jar:5.1.39]
      7. com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:470)[mysql-connector-java-5.1.39.jar:5.1.39]
      8. com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3105)[mysql-connector-java-5.1.39.jar:5.1.39]
      9. com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2336)[mysql-connector-java-5.1.39.jar:5.1.39]
      10. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2729)[mysql-connector-java-5.1.39.jar:5.1.39]
      11. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)[mysql-connector-java-5.1.39.jar:5.1.39]
      12. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2503)[mysql-connector-java-5.1.39.jar:5.1.39]
      13. com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1369)[mysql-connector-java-5.1.39.jar:5.1.39]
      14. com.mysql.jdbc.DatabaseMetaData$2.forEach(DatabaseMetaData.java:2430)[mysql-connector-java-5.1.39.jar:5.1.39]
      15. com.mysql.jdbc.DatabaseMetaData$2.forEach(DatabaseMetaData.java:2341)[mysql-connector-java-5.1.39.jar:5.1.39]
      16. com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:50)[mysql-connector-java-5.1.39.jar:5.1.39]
      17. com.mysql.jdbc.DatabaseMetaData.getColumns(DatabaseMetaData.java:2339)[mysql-connector-java-5.1.39.jar:5.1.39]
      17 frames
    3. org.hibernate.tool
      TableInformationImpl.getColumn
      1. org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.getColumn(InformationExtractorJdbcDatabaseMetaDataImpl.java:454)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      2. org.hibernate.tool.schema.extract.internal.TableInformationImpl.getColumn(TableInformationImpl.java:68)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      2 frames
    4. Hibernate
      Table.sqlAlterStrings
      1. org.hibernate.mapping.Table.sqlAlterStrings(Table.java:456)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      1 frame
    5. org.hibernate.tool
      SchemaMigratorImpl.doMigration
      1. org.hibernate.tool.schema.internal.SchemaMigratorImpl.migrateTable(SchemaMigratorImpl.java:254)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      2. org.hibernate.tool.schema.internal.SchemaMigratorImpl.doMigrationToTargets(SchemaMigratorImpl.java:170)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      3. org.hibernate.tool.schema.internal.SchemaMigratorImpl.doMigration(SchemaMigratorImpl.java:60)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      3 frames
    6. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:134)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      2. org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:101)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      3. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:472)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      3 frames
    7. org.hibernate.boot
      SessionFactoryBuilderImpl.build
      1. org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
      1 frame
    8. org.hibernate.jpa
      EntityManagerFactoryBuilderImpl.build
      1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)[hibernate-entitymanager-5.0.11.Final.jar:5.0.11.Final]
      1 frame
    9. Spring ORM
      AbstractEntityManagerFactoryBean.afterPropertiesSet
      1. org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)[spring-orm-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      2. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:353)[spring-orm-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      3. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:373)[spring-orm-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      4. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:362)[spring-orm-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      4 frames
    10. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1642)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      8 frames
    11. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1076)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:851)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      3 frames
    12. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
      6 frames
    13. org.kehrbusch.butler
      Bootstrapper.main
      1. org.kehrbusch.butler.authentication.app.Bootstrapper.main(Bootstrapper.java:18)[classes/:na]
      1 frame