org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ds2EntityManagerFactory' defined in class path resource [de/ordix/twods/config/Ds2Database.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: ds2] Unable to build Hibernate SessionFactory

ordix.de | 4 months ago
  1. 0

    How do I cure the "net.sf.ehcache.CacheException: No such device" exception?

    Stack Overflow | 8 months ago | Dave
    org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [META-INF/spring/infrastructure.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
  2. 0

    hibernate ehcache test fail

    Stack Overflow | 2 months ago | user2995031
    org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.spi.CacheImplementor]
  3. 0

    Umstellung Spring Boot V1.3.5 auf V1.4.M2: Probleme mit EHCache

    ordix.de | 4 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ds2EntityManagerFactory' defined in class path resource [de/ordix/twods/config/Ds2Database.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: ds2] Unable to build Hibernate SessionFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Configuration issue with JPA ConfigClass

    Stack Overflow | 3 years ago | Harley Jackson
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configureEntityManagerFactory' defined in class org.deloitte.cms.eua.config.JpaConfig: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build EntityManagerFactory
  6. 0

    FHIR Appointment Mapping Issue Against OpenMRS Appointment Module - Development - OpenMRS Talk

    openmrs.org | 7 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'userServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceTarget' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'userDAO' while setting bean property 'userDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAO' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject

    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. net.sf.ehcache.CacheException

      Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following: 1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary 2. Shutdown the earlier cacheManager before creating new one with same name. The source of the existing CacheManager is: URLConfigurationSource [url=file:/C:/Users/ar/Documents/workspace-sts/twods/target/classes/ehcache1.xml]

      at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName()
    2. Ehcache
      CacheManager.<init>
      1. net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:628)[ehcache-2.10.2.jar:2.10.2]
      2. net.sf.ehcache.CacheManager.init(CacheManager.java:392)[ehcache-2.10.2.jar:2.10.2]
      3. net.sf.ehcache.CacheManager.<init>(CacheManager.java:270)[ehcache-2.10.2.jar:2.10.2]
      3 frames
    3. A Hibernate O/RM Module
      EhCacheRegionFactory.start
      1. org.hibernate.cache.ehcache.EhCacheRegionFactory.start(EhCacheRegionFactory.java:74)[hibernate-ehcache-5.1.0.Final.jar:5.1.0.Final]
      1 frame
    4. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.internal.CacheImpl.<init>(CacheImpl.java:49)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      2. org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:28)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      3. org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:20)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      4. org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:46)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      5. org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      6. org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      7. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      8. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:240)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      8 frames
    5. org.hibernate.boot
      SessionFactoryBuilderImpl.build
      1. org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:465)[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
      1 frame
    6. org.hibernate.jpa
      EntityManagerFactoryBuilderImpl.build
      1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:881)[hibernate-entitymanager-5.1.0.Final.jar:5.1.0.Final]
      1 frame
    7. Spring ORM
      AbstractEntityManagerFactoryBean.afterPropertiesSet
      1. org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)[spring-orm-4.3.0.RC2.jar:4.3.0.RC2]
      2. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:338)[spring-orm-4.3.0.RC2.jar:4.3.0.RC2]
      3. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:373)[spring-orm-4.3.0.RC2.jar:4.3.0.RC2]
      4. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:362)[spring-orm-4.3.0.RC2.jar:4.3.0.RC2]
      4 frames
    8. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)[spring-beans-4.3.0.RC2.jar:4.3.0.RC2]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)[spring-beans-4.3.0.RC2.jar:4.3.0.RC2]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[spring-beans-4.3.0.RC2.jar:4.3.0.RC2]
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.0.RC2.jar:4.3.0.RC2]
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.0.RC2.jar:4.3.0.RC2]
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.0.RC2.jar:4.3.0.RC2]
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.0.RC2.jar:4.3.0.RC2]
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.0.RC2.jar:4.3.0.RC2]
      8 frames
    9. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1076)[spring-context-4.3.0.RC2.jar:4.3.0.RC2]
      2. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:851)[spring-context-4.3.0.RC2.jar:4.3.0.RC2]
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[spring-context-4.3.0.RC2.jar:4.3.0.RC2]
      3 frames
    10. Spring Boot
      SpringApplicationContextLoader.loadContext
      1. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:765)[spring-boot-1.4.0.M3.jar:1.4.0.M3]
      2. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)[spring-boot-1.4.0.M3.jar:1.4.0.M3]
      3. org.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring-boot-1.4.0.M3.jar:1.4.0.M3]
      4. org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:103)[spring-boot-test-1.4.0.M3.jar:1.4.0.M3]
      4 frames
    11. org.springframework.test
      DefaultCacheAwareContextLoaderDelegate.loadContext
      1. org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      2. org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      2 frames
    12. Spring TestContext
      SpringJUnit4ClassRunner$1.runReflectiveCall
      1. org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      2. org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      3. org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      4. org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      5. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      6. org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      6 frames
    13. JUnit
      ReflectiveCallable.run
      1. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)[junit-4.12.jar:4.12]
      1 frame
    14. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      3. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      3 frames
    15. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[junit-4.12.jar:4.12]
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)[junit-4.12.jar:4.12]
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)[junit-4.12.jar:4.12]
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)[junit-4.12.jar:4.12]
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)[junit-4.12.jar:4.12]
      5 frames
    16. Spring TestContext
      RunAfterTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      2 frames
    17. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)[junit-4.12.jar:4.12]
      1 frame
    18. Spring TestContext
      SpringJUnit4ClassRunner.run
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)[spring-test-4.3.0.RC2.jar:4.3.0.RC2]
      1 frame
    19. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)[.cp/:na]
      1 frame
    20. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)[.cp/:na]
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)[.cp/:na]
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)[.cp/:na]
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)[.cp/:na]
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)[.cp/:na]
      5 frames