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 | 5 months ago
  1. 0

    Ehcache( Unable to load Class)

    Stack Overflow | 5 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.
  2. 0

    Rejoin: Newbie here please help me to write sample program on rejoin.

    Terracotta | 6 years ago | jagan510
    net.sf.ehcache.config.InvalidConfigurationException: Errors: Terracotta clustered caches must be nonstop when rejoin is enabled. Invalid cache: myCache
  3. 0

    GitHub comment 4#83772349

    GitHub | 2 years ago | felipevb
    net.sf.ehcache.config.InvalidConfigurationException: There is one error in your configuration: * CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 4#83772349

    GitHub | 2 years ago | felipevb
    net.sf.ehcache.config.InvalidConfigurationException: There is one error in your configuration: |?* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly||

    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