java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • One or more cluster nodes in a Stash DC instance may very rarely report this log error when the GET {{/mvc/maintenance}} endpoint is polled very quickly after putting Stash into backup mode (e.g., as part of DIY Backup). h4. scmService {{Latch for scmService was not injected}} {noformat}java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Latch for scmService was not injected at java.util.concurrent.FutureTask.report(Unknown Source) ~[na:1.7.0_55] at java.util.concurrent.FutureTask.get(Unknown Source) ~[na:1.7.0_55] at com.hazelcast.executor.impl.DistributedExecutorService$CallableProcessor.run(DistributedExecutorService.java:189) ~[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:209) ~[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_55] at java.lang.Thread.run(Unknown Source) [na:1.7.0_55] at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76) [hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92) [hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] ... 1 frame trimmed Caused by: java.lang.IllegalStateException: Latch for scmService was not injected at com.google.common.base.Preconditions.checkState(Preconditions.java:172) ~[guava-11.0.2-atlassian-02.jar:na] at com.atlassian.stash.internal.maintenance.latch.ClusterableLatch$DrainTask.call(ClusterableLatch.java:332) ~[stash-service-impl-3.11.0-SNAPSHOT.jar:na] at com.atlassian.stash.internal.maintenance.latch.ClusterableLatch$DrainTask.call(ClusterableLatch.java:318) ~[stash-service-impl-3.11.0-SNAPSHOT.jar:na] at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.7.0_55] at com.hazelcast.executor.impl.DistributedExecutorService$CallableProcessor.run(DistributedExecutorService.java:187) ~[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:209) ~[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_55] at java.lang.Thread.run(Unknown Source) [na:1.7.0_55] at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76) [hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92) [hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at ------ End remote and begin local stack-trace ------.(Unknown Source) ~[na:na] at com.hazelcast.spi.impl.BasicInvocationFuture.resolveApplicationResponse(BasicInvocationFuture.java:387) ~[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at com.hazelcast.spi.impl.BasicInvocationFuture.access$300(BasicInvocationFuture.java:34) ~[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] at com.hazelcast.spi.impl.BasicInvocationFuture$1.run(BasicInvocationFuture.java:93) ~[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13] ... 5 common frames omitted{noformat} h4. databaseManager {{Latch for databaseManager was not injected}} {noformat}java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Latch for databaseManager was not injected at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_40] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_40] at com.hazelcast.executor.impl.DistributedExecutorService$CallableProcessor.run(DistributedExecutorService.java:189) ~[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:209) [hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40] at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76) [hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92) [hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] ... 1 frame trimmed Caused by: java.lang.IllegalStateException: Latch for databaseManager was not injected at com.google.common.base.Preconditions.checkState(Preconditions.java:172) ~[guava-11.0.2-atlassian-02.jar:na] at com.atlassian.stash.internal.maintenance.latch.ClusterableLatch$DrainTask.call(ClusterableLatch.java:332) ~[stash-service-impl-3.9.2.jar:na] at com.atlassian.stash.internal.maintenance.latch.ClusterableLatch$DrainTask.call(ClusterableLatch.java:318) ~[stash-service-impl-3.9.2.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_40] at com.hazelcast.executor.impl.DistributedExecutorService$CallableProcessor.run(DistributedExecutorService.java:187) ~[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:209) [hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40] at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76) [hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92) [hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at ------ End remote and begin local stack-trace ------.(Unknown Source) ~[na:na] at com.hazelcast.spi.impl.BasicInvocationFuture.resolveApplicationResponse(BasicInvocationFuture.java:356) ~[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at com.hazelcast.spi.impl.BasicInvocationFuture.access$300(BasicInvocationFuture.java:31) ~[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at com.hazelcast.spi.impl.BasicInvocationFuture$1.run(BasicInvocationFuture.java:85) ~[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] ... 6 common frames omitted{noformat}
    via by Daniel Rohan [Atlassian],
  • deletions
    via by Douglas Crawford,
  • ERROR consnet
    via by Maria Alejandra Pinzon Suarez,
    • java.lang.IllegalStateException: Latch for databaseManager was not injected at java.util.concurrent.FutureTask.report(FutureTask.java:122)[na:1.8.0_40] at java.util.concurrent.FutureTask.get(FutureTask.java:192)[na:1.8.0_40] at com.hazelcast.executor.impl.DistributedExecutorService$CallableProcessor.run(DistributedExecutorService.java:189)[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:209)[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_40] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_40] at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10] at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)[hazelcast-3.3.1-atlassian-10.jar:3.3.1-atlassian-10]
    No Bugmate found.