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: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]

Pentaho BI Platform Tracking | Sulaiman Karmali | 4 years ago
  1. 0

    When running PRD, I am getting this exception. This exception started happening after upgrade of ehcache-core 2.0.5 to 2.1.5: 2012-12-14 10:27:06,969 [ 26844] INFO - org.pentaho.reporting.libraries.base.util.ObjectUtilities - Specified class org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache failed to instantiate correctly. 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: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ] at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:457) at net.sf.ehcache.CacheManager.init(CacheManager.java:354) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:339) at org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.<init>(EhCacheDataCache.java:64) at org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.<init>(EhCacheDataCache.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.pentaho.reporting.libraries.base.util.ObjectUtilities.loadAndInstantiate(ObjectUtilities.java:431) at org.pentaho.reporting.engine.classic.core.cache.DataCacheFactory.getCache(DataCacheFactory.java:26) at org.pentaho.reporting.designer.core.actions.global.ClearDataCacheAction.<init>(ClearDataCacheAction.java:39) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.pentaho.reporting.libraries.base.util.ObjectUtilities.loadAndInstantiate(ObjectUtilities.java:431) at org.pentaho.reporting.designer.core.xul.ActionSwingMenuitem.setAction(ActionSwingMenuitem.java:237) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789) at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684) at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729) at org.pentaho.ui.xul.impl.XulParser.getElement(XulParser.java:219) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:149) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156) at org.pentaho.ui.xul.impl.XulParser.parseDocument(XulParser.java:70) at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:119) at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:244) at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:222) at org.pentaho.reporting.designer.core.xul.XulDesignerFrame.<init>(XulDesignerFrame.java:66) at org.pentaho.reporting.designer.core.DefaultReportDesignerContext.<init>(DefaultReportDesignerContext.java:115) at org.pentaho.reporting.designer.core.ReportDesignerFrame.<init>(ReportDesignerFrame.java:1021) at org.pentaho.reporting.designer.core.ReportDesigner$CreateReportDesignerFrame.run(ReportDesigner.java:117) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:663) at java.awt.EventQueue$2.run(EventQueue.java:661) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:672) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)

    Pentaho BI Platform Tracking | 4 years ago | Sulaiman Karmali
    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: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  2. 0

    When running PRD, I am getting this exception. This exception started happening after upgrade of ehcache-core 2.0.5 to 2.1.5: 2012-12-14 10:27:06,969 [ 26844] INFO - org.pentaho.reporting.libraries.base.util.ObjectUtilities - Specified class org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache failed to instantiate correctly. 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: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ] at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:457) at net.sf.ehcache.CacheManager.init(CacheManager.java:354) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:339) at org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.<init>(EhCacheDataCache.java:64) at org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.<init>(EhCacheDataCache.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.pentaho.reporting.libraries.base.util.ObjectUtilities.loadAndInstantiate(ObjectUtilities.java:431) at org.pentaho.reporting.engine.classic.core.cache.DataCacheFactory.getCache(DataCacheFactory.java:26) at org.pentaho.reporting.designer.core.actions.global.ClearDataCacheAction.<init>(ClearDataCacheAction.java:39) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.pentaho.reporting.libraries.base.util.ObjectUtilities.loadAndInstantiate(ObjectUtilities.java:431) at org.pentaho.reporting.designer.core.xul.ActionSwingMenuitem.setAction(ActionSwingMenuitem.java:237) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789) at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684) at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729) at org.pentaho.ui.xul.impl.XulParser.getElement(XulParser.java:219) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:149) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156) at org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156) at org.pentaho.ui.xul.impl.XulParser.parseDocument(XulParser.java:70) at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:119) at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:244) at org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:222) at org.pentaho.reporting.designer.core.xul.XulDesignerFrame.<init>(XulDesignerFrame.java:66) at org.pentaho.reporting.designer.core.DefaultReportDesignerContext.<init>(DefaultReportDesignerContext.java:115) at org.pentaho.reporting.designer.core.ReportDesignerFrame.<init>(ReportDesignerFrame.java:1021) at org.pentaho.reporting.designer.core.ReportDesigner$CreateReportDesignerFrame.run(ReportDesigner.java:117) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:663) at java.awt.EventQueue$2.run(EventQueue.java:661) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:672) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)

    Pentaho BI Platform Tracking | 4 years ago | Sulaiman Karmali
    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: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  3. 0

    running junit Test through Eclipse of an Web model-view-controller spring framework application

    Stack Overflow | 1 year ago | Nuñito de la Calzada
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [file:/C:/Development/Workspaces/EclipseWS/ENV-DEVICES/bin/fr/devices/dao/testDataAccessContext.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: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
  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

    EhCacheCacheConfiguration and Hibernate 2nd level cache aren't coexisting.

    GitHub | 12 months ago | csavory
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehCacheCacheManager' defined in class path resource [org/springframework/boot/autoconfigure/cache/EhCacheCacheConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.sf.ehcache.CacheManager]: Factory method 'ehCacheCacheManager' threw exception; 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: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]

    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: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]

      at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName()
    2. Ehcache
      CacheManager.<init>
      1. net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:457)
      2. net.sf.ehcache.CacheManager.init(CacheManager.java:354)
      3. net.sf.ehcache.CacheManager.<init>(CacheManager.java:339)
      3 frames
    3. org.pentaho.reporting
      EhCacheDataCache.<init>
      1. org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.<init>(EhCacheDataCache.java:64)
      2. org.pentaho.reporting.engine.classic.core.cache.EhCacheDataCache.<init>(EhCacheDataCache.java:49)
      2 frames
    4. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.Class.newInstance0(Class.java:355)
      6. java.lang.Class.newInstance(Class.java:308)
      6 frames
    5. org.pentaho.reporting
      ClearDataCacheAction.<init>
      1. org.pentaho.reporting.libraries.base.util.ObjectUtilities.loadAndInstantiate(ObjectUtilities.java:431)
      2. org.pentaho.reporting.engine.classic.core.cache.DataCacheFactory.getCache(DataCacheFactory.java:26)
      3. org.pentaho.reporting.designer.core.actions.global.ClearDataCacheAction.<init>(ClearDataCacheAction.java:39)
      3 frames
    6. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.Class.newInstance0(Class.java:355)
      6. java.lang.Class.newInstance(Class.java:308)
      6 frames
    7. org.pentaho.reporting
      ActionSwingMenuitem.setAction
      1. org.pentaho.reporting.libraries.base.util.ObjectUtilities.loadAndInstantiate(ObjectUtilities.java:431)
      2. org.pentaho.reporting.designer.core.xul.ActionSwingMenuitem.setAction(ActionSwingMenuitem.java:237)
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    9. Apache Commons BeanUtils
      BeanUtils.populate
      1. org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
      2. org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
      3. org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
      4. org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
      5. org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
      5 frames
    10. org.pentaho.ui
      AbstractXulLoader.loadXul
      1. org.pentaho.ui.xul.impl.XulParser.getElement(XulParser.java:219)
      2. org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:149)
      3. org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156)
      4. org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156)
      5. org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156)
      6. org.pentaho.ui.xul.impl.XulParser.parse(XulParser.java:156)
      7. org.pentaho.ui.xul.impl.XulParser.parseDocument(XulParser.java:70)
      8. org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:119)
      9. org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:244)
      10. org.pentaho.ui.xul.impl.AbstractXulLoader.loadXul(AbstractXulLoader.java:222)
      10 frames
    11. org.pentaho.reporting
      ReportDesigner$CreateReportDesignerFrame.run
      1. org.pentaho.reporting.designer.core.xul.XulDesignerFrame.<init>(XulDesignerFrame.java:66)
      2. org.pentaho.reporting.designer.core.DefaultReportDesignerContext.<init>(DefaultReportDesignerContext.java:115)
      3. org.pentaho.reporting.designer.core.ReportDesignerFrame.<init>(ReportDesignerFrame.java:1021)
      4. org.pentaho.reporting.designer.core.ReportDesigner$CreateReportDesignerFrame.run(ReportDesigner.java:117)
      4 frames
    12. Java RT
      EventDispatchThread.pumpEvents
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
      3. java.awt.EventQueue.access$400(EventQueue.java:82)
      4. java.awt.EventQueue$2.run(EventQueue.java:663)
      5. java.awt.EventQueue$2.run(EventQueue.java:661)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
      9. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
      10. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
      11. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
      12. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
      13. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
      13 frames