org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/test/authflow/config/DatabaseConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Class name must not be null

Stack Overflow | Sp1 | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Error in bean creation

    Stack Overflow | 8 months ago | Sp1
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/test/authflow/config/DatabaseConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Class name must not be null
  2. 0

    Spring boot, mvc, hibernate and mysql configuration - sessionFactory error

    Stack Overflow | 5 months ago | M.Sz
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [com/budget/configs/DatabaseConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Class name must not be null

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Class name must not be null

      at org.springframework.util.Assert.notNull()
    2. Spring Core
      ClassUtils.convertClassNameToResourcePath
      1. org.springframework.util.Assert.notNull(Assert.java:115)[spring-core-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      2. org.springframework.util.ClassUtils.convertClassNameToResourcePath(ClassUtils.java:960)[spring-core-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      2 frames
    3. Spring ORM
      AbstractEntityManagerFactoryBean.afterPropertiesSet
      1. org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.buildDefaultPersistenceUnitInfo(DefaultPersistenceUnitManager.java:522)[spring-orm-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      2. org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.readPersistenceUnitInfos(DefaultPersistenceUnitManager.java:503)[spring-orm-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      3. org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.preparePersistenceUnitInfos(DefaultPersistenceUnitManager.java:440)[spring-orm-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      4. org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.afterPropertiesSet(DefaultPersistenceUnitManager.java:424)[spring-orm-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      5. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:310)[spring-orm-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      6. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:319)[spring-orm-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      6 frames
    4. Spring Beans
      AbstractAutowireCapableBeanFactory.initializeBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      2 frames