org.ehcache.StateTransitionException

Cache 'clustered-cache' creation in EhcacheManager failed.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web10

  • Cache 'clustered-cache' creation in EhcacheManager failed.
  • via GitHub by kedar031
    , 10 months ago
    Cache 'clustered-cache' creation in EhcacheManager failed.
  • Cache 'clustered-cache' creation in EhcacheManager failed. 20:44:06.560 [main] DEBUG org.ehcache.core.EhcacheManager - Initialize successful.
  • Stack trace

    • org.ehcache.StateTransitionException: Cache 'clustered-cache' creation in EhcacheManager failed. at org.ehcache.core.StatusTransitioner$Transition.failed(StatusTransitioner.java:235) at org.ehcache.core.EhcacheManager.init(EhcacheManager.java:585) at org.ehcache.Clust.testNoResourcePoolOnServerClientUsingShared(Clust.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Caused by: java.lang.IllegalStateException: Cache 'clustered-cache' creation in EhcacheManager failed. at org.ehcache.core.EhcacheManager.createCache(EhcacheManager.java:285) at org.ehcache.core.EhcacheManager.init(EhcacheManager.java:564) ... 28 more Caused by: org.ehcache.StateTransitionException: Error creating server-side cache for clustered-cache at org.ehcache.core.StatusTransitioner$Transition.succeeded(StatusTransitioner.java:209) at org.ehcache.core.Ehcache.init(Ehcache.java:582) at org.ehcache.core.EhcacheManager.createCache(EhcacheManager.java:258) ... 29 more Caused by: org.ehcache.clustered.common.ClusteredStoreCreationException: Error creating server-side cache for clustered-cache at org.ehcache.clustered.client.internal.service.DefaultClusteringService.getServerStoreProxy(DefaultClusteringService.java:310) at org.ehcache.clustered.client.internal.store.ClusteredStore$Provider.initStore(ClusteredStore.java:519) at org.ehcache.core.EhcacheManager$8.init(EhcacheManager.java:496) at org.ehcache.core.StatusTransitioner.runInitHooks(StatusTransitioner.java:135) at org.ehcache.core.StatusTransitioner.access$000(StatusTransitioner.java:33) at org.ehcache.core.StatusTransitioner$Transition.succeeded(StatusTransitioner.java:194) ... 31 more Caused by: org.ehcache.CachePersistenceException: LIFECYCLE_OP error: java.lang.NullPointerException at org.ehcache.clustered.client.internal.EhcacheClientEntity.invokeInternal(EhcacheClientEntity.java:236) at org.ehcache.clustered.client.internal.EhcacheClientEntity.createCache(EhcacheClientEntity.java:156) at org.ehcache.clustered.client.internal.service.DefaultClusteringService.getServerStoreProxy(DefaultClusteringService.java:308) ... 36 more Caused by: java.lang.NullPointerException at org.terracotta.offheapstore.OffHeapHashMap.allocateTable(OffHeapHashMap.java:1256) at org.terracotta.offheapstore.OffHeapHashMap.<init>(OffHeapHashMap.java:213) at org.terracotta.offheapstore.OffHeapHashMap.<init>(OffHeapHashMap.java:188) at org.terracotta.offheapstore.OffHeapHashMap.<init>(OffHeapHashMap.java:168) at org.terracotta.offheapstore.AbstractLockedOffHeapHashMap.<init>(AbstractLockedOffHeapHashMap.java:51) at org.terracotta.offheapstore.AbstractOffHeapClockCache.<init>(AbstractOffHeapClockCache.java:56) at org.terracotta.offheapstore.ReadWriteLockedOffHeapClockCache.<init>(ReadWriteLockedOffHeapClockCache.java:45) at org.terracotta.offheapstore.eviction.EvictionListeningReadWriteLockedOffHeapClockCache.<init>(EvictionListeningReadWriteLockedOffHeapClockCache.java:33) at org.ehcache.clustered.server.offheap.OffHeapChainMap.<init>(OffHeapChainMap.java:66) at org.ehcache.clustered.server.offheap.OffHeapServerStore.<init>(OffHeapServerStore.java:38) at org.ehcache.clustered.server.ServerStoreImpl.<init>(ServerStoreImpl.java:38) at org.ehcache.clustered.server.EhcacheActiveEntity.createServerStore(EhcacheActiveEntity.java:727) at org.ehcache.clustered.server.EhcacheActiveEntity.invokeLifeCycleOperation(EhcacheActiveEntity.java:308) at org.ehcache.clustered.server.EhcacheActiveEntity.invoke(EhcacheActiveEntity.java:277) at org.ehcache.clustered.server.EhcacheActiveEntity.invoke(EhcacheActiveEntity.java:80) at com.tc.objectserver.entity.ManagedEntityImpl.lambda$performAction$27(ManagedEntityImpl.java:610) at com.tc.objectserver.entity.ManagedEntityImpl.runWithHelper(ManagedEntityImpl.java:259) at com.tc.objectserver.entity.ManagedEntityImpl.performAction(ManagedEntityImpl.java:610) at com.tc.objectserver.entity.ManagedEntityImpl.invoke(ManagedEntityImpl.java:358) at com.tc.objectserver.entity.ManagedEntityImpl.lambda$processInvokeRequest$20(ManagedEntityImpl.java:204) at com.tc.objectserver.entity.ManagedEntityImpl$SchedulingRunnable.run(ManagedEntityImpl.java:837) at com.tc.objectserver.entity.RequestProcessor$EntityRequest.invoke(RequestProcessor.java:219) at com.tc.objectserver.entity.RequestProcessor$EntityRequest.run(RequestProcessor.java:211) at com.tc.objectserver.entity.RequestProcessorHandler.handleEvent(RequestProcessorHandler.java:27) at com.tc.objectserver.entity.RequestProcessorHandler.handleEvent(RequestProcessorHandler.java:23) at com.tc.async.impl.StageQueueImpl$HandledContext.runWithHandler(StageQueueImpl.java:502) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:197)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.