net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.ExpressEnterpriseTerracottaClusteredInstanceFactory. Initial cause was org.terracotta.toolkit.ToolkitInstantiationException: java.lang.RuntimeException: Unable to create toolkit.

Stack Overflow | Robin Singh | 10 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

    Ehcache( Unable to load Class)

    Stack Overflow | 10 months ago | Robin Singh
    net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.ExpressEnterpriseTerracottaClusteredInstanceFactory. Initial cause was org.terracotta.toolkit.ToolkitInstantiationException: java.lang.RuntimeException: Unable to create toolkit.

    Root Cause Analysis

    1. net.sf.ehcache.config.InvalidConfigurationException

      The disk path for this cache manager is the default path. You must define a specific unique disk path for this manager in order to use restartable caches.

      at net.sf.ehcache.store.restartability.EhcacheRestartability.constructRestartability()
    2. net.sf.ehcache
      EhcacheRestartability.startup
      1. net.sf.ehcache.store.restartability.EhcacheRestartability.constructRestartability(EhcacheRestartability.java:189)
      2. net.sf.ehcache.store.restartability.EhcacheRestartability.startup(EhcacheRestartability.java:94)
      2 frames
    3. Ehcache
      CacheManager.newInstance
      1. net.sf.ehcache.EnterpriseFeaturesManager.startup(EnterpriseFeaturesManager.java:102)
      2. net.sf.ehcache.CacheManager.doInit(CacheManager.java:520)
      3. net.sf.ehcache.CacheManager.init(CacheManager.java:395)
      4. net.sf.ehcache.CacheManager.<init>(CacheManager.java:270)
      5. net.sf.ehcache.CacheManager.newInstance(CacheManager.java:1116)
      6. net.sf.ehcache.CacheManager.newInstance(CacheManager.java:1092)
      6 frames
    4. com.terracotta.toolkit
      ToolkitCacheManagerProvider.<init>
      1. com.terracotta.toolkit.ToolkitCacheManagerProvider.createDefaultToolkitCacheManager(ToolkitCacheManagerProvider.java:19)
      2. com.terracotta.toolkit.ToolkitCacheManagerProvider.<init>(ToolkitCacheManagerProvider.java:14)
      2 frames
    5. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    6. com.terracotta.toolkit
      TerracottaToolkitFactoryService.createToolkit
      1. com.terracotta.toolkit.express.TerracottaInternalClientImpl.instantiate(TerracottaInternalClientImpl.java:156)
      2. com.terracotta.toolkit.client.TerracottaToolkitCreator.initializeDefaultCacheManagerProvider(TerracottaToolkitCreator.java:173)
      3. com.terracotta.toolkit.client.TerracottaToolkitCreator.createToolkit(TerracottaToolkitCreator.java:55)
      4. com.terracotta.toolkit.api.EnterpriseTerracottaToolkitFactoryService.createToolkit(EnterpriseTerracottaToolkitFactoryService.java:17)
      5. com.terracotta.toolkit.api.TerracottaToolkitFactoryService.createToolkit(TerracottaToolkitFactoryService.java:44)
      5 frames
    7. org.terracotta.toolkit
      ToolkitFactory.createToolkit
      1. org.terracotta.toolkit.ToolkitFactory.create(ToolkitFactory.java:100)
      2. org.terracotta.toolkit.ToolkitFactory.createToolkit(ToolkitFactory.java:84)
      2 frames
    8. org.terracotta.modules
      EnterpriseTerracottaClusteredInstanceFactory.<init>
      1. org.terracotta.modules.ehcache.TerracottaToolkitBuilder.createToolkit(TerracottaToolkitBuilder.java:61)
      2. org.terracotta.modules.ehcache.TerracottaToolkitBuilder.buildToolkit(TerracottaToolkitBuilder.java:56)
      3. org.terracotta.modules.ehcache.ToolkitInstanceFactoryImpl.createTerracottaToolkit(ToolkitInstanceFactoryImpl.java:183)
      4. org.terracotta.modules.ehcache.ToolkitInstanceFactoryImpl.<init>(ToolkitInstanceFactoryImpl.java:119)
      5. org.terracotta.modules.ehcache.ToolkitInstanceFactoryImpl.<init>(ToolkitInstanceFactoryImpl.java:129)
      6. org.terracotta.modules.ehcache.EnterpriseToolkitInstanceFactory.<init>(EnterpriseToolkitInstanceFactory.java:23)
      7. org.terracotta.modules.ehcache.store.EnterpriseTerracottaClusteredInstanceFactory.createToolkitInstanceFactory(EnterpriseTerracottaClusteredInstanceFactory.java:21)
      8. org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.<init>(TerracottaClusteredInstanceFactory.java:65)
      9. org.terracotta.modules.ehcache.store.EnterpriseTerracottaClusteredInstanceFactory.<init>(EnterpriseTerracottaClusteredInstanceFactory.java:15)
      9 frames
    9. Ehcache
      ExpressEnterpriseTerracottaClusteredInstanceFactory.<init>
      1. net.sf.ehcache.terracotta.ExpressEnterpriseTerracottaClusteredInstanceFactory.<init>(ExpressEnterpriseTerracottaClusteredInstanceFactory.java:11)
      1 frame
    10. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    11. Ehcache
      CacheManager.newInstance
      1. net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:73)
      2. net.sf.ehcache.terracotta.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:157)
      3. net.sf.ehcache.terracotta.TerracottaClient.createNewClusteredInstanceFactory(TerracottaClient.java:180)
      4. net.sf.ehcache.terracotta.TerracottaClient.createClusteredInstanceFactory(TerracottaClient.java:129)
      5. net.sf.ehcache.CacheManager.doInit(CacheManager.java:463)
      6. net.sf.ehcache.CacheManager.init(CacheManager.java:395)
      7. net.sf.ehcache.CacheManager.<init>(CacheManager.java:270)
      8. net.sf.ehcache.CacheManager.newInstance(CacheManager.java:1116)
      9. net.sf.ehcache.CacheManager.newInstance(CacheManager.java:947)
      9 frames
    12. Unknown
      BigMemoryDemo.main
      1. BigMemoryDemo.main(BigMemoryDemo.java:8)
      1 frame