java.lang.RuntimeException: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.services.CachingService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.dspace.services.caching.CachingServiceImpl.setCacheManager(net.sf.ehcache.CacheManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.dspace.caching.ehcache.CacheManager' defined in URL [file:/home/travis/build/helix84/DSpace/dspace-services/target/classes/spring/spring-dspace-core-services.xml]: Invocation of init method failed; nested exception is 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: InputStreamConfigurationSource [stream=java.io.FileInputStream@72f69182]

Sakai JIRA | Ivan Masár | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ehcache upgrade 2.4.3 -> 2.6.11 fails on test: Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.619 sec <<< FAILURE! - in org.dspace.servicemanager.DSpaceKernelImplTest testMultipleKernels(org.dspace.servicemanager.DSpaceKernelImplTest) Time elapsed: 0.462 sec <<< ERROR! java.lang.RuntimeException: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.services.CachingService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.dspace.services.caching.CachingServiceImpl.setCacheManager(net.sf.ehcache.CacheManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.dspace.caching.ehcache.CacheManager' defined in URL [file:/home/travis/build/helix84/DSpace/dspace-services/target/classes/spring/spring-dspace-core-services.xml]: Invocation of init method failed; nested exception is 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: InputStreamConfigurationSource [stream=java.io.FileInputStream@72f69182] at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:529) https://travis-ci.org/helix84/DSpace/builds/106556416

    Sakai JIRA | 1 year ago | Ivan Masár
    java.lang.RuntimeException: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.services.CachingService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.dspace.services.caching.CachingServiceImpl.setCacheManager(net.sf.ehcache.CacheManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.dspace.caching.ehcache.CacheManager' defined in URL [file:/home/travis/build/helix84/DSpace/dspace-services/target/classes/spring/spring-dspace-core-services.xml]: Invocation of init method failed; nested exception is 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: InputStreamConfigurationSource [stream=java.io.FileInputStream@72f69182]
  2. 0

    ehcache upgrade 2.4.3 -> 2.6.11 fails on test: Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.619 sec <<< FAILURE! - in org.dspace.servicemanager.DSpaceKernelImplTest testMultipleKernels(org.dspace.servicemanager.DSpaceKernelImplTest) Time elapsed: 0.462 sec <<< ERROR! java.lang.RuntimeException: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.services.CachingService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.dspace.services.caching.CachingServiceImpl.setCacheManager(net.sf.ehcache.CacheManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.dspace.caching.ehcache.CacheManager' defined in URL [file:/home/travis/build/helix84/DSpace/dspace-services/target/classes/spring/spring-dspace-core-services.xml]: Invocation of init method failed; nested exception is 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: InputStreamConfigurationSource [stream=java.io.FileInputStream@72f69182] at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:529) https://travis-ci.org/helix84/DSpace/builds/106556416

    Sakai JIRA | 1 year ago | Ivan Masár
    java.lang.RuntimeException: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.services.CachingService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.dspace.services.caching.CachingServiceImpl.setCacheManager(net.sf.ehcache.CacheManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.dspace.caching.ehcache.CacheManager' defined in URL [file:/home/travis/build/helix84/DSpace/dspace-services/target/classes/spring/spring-dspace-core-services.xml]: Invocation of init method failed; nested exception is 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: InputStreamConfigurationSource [stream=java.io.FileInputStream@72f69182]

    Root Cause Analysis

    1. java.lang.RuntimeException

      Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.services.CachingService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.dspace.services.caching.CachingServiceImpl.setCacheManager(net.sf.ehcache.CacheManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.dspace.caching.ehcache.CacheManager' defined in URL [file:/home/travis/build/helix84/DSpace/dspace-services/target/classes/spring/spring-dspace-core-services.xml]: Invocation of init method failed; nested exception is 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: InputStreamConfigurationSource [stream=java.io.FileInputStream@72f69182]

      at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName()
    2. Ehcache
      CacheManager.assertNoCacheManagerExistsWithSameName
      1. net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:529)
      1 frame