java.lang.IllegalStateException: Latch for scmService was not injected

Atlassian JIRA | Daniel Rohan [Atlassian] | 2 years 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

    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}

    Atlassian JIRA | 2 years ago | Daniel Rohan [Atlassian]
    java.lang.IllegalStateException: Latch for scmService was not injected

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Latch for scmService was not injected

      at java.util.concurrent.FutureTask.report()
    2. Java RT
      FutureTask.get
      1. java.util.concurrent.FutureTask.report(Unknown Source)[na:1.7.0_55]
      2. java.util.concurrent.FutureTask.get(Unknown Source)[na:1.7.0_55]
      2 frames
    3. Hazelcast
      CachedExecutorServiceDelegate$Worker.run
      1. com.hazelcast.executor.impl.DistributedExecutorService$CallableProcessor.run(DistributedExecutorService.java:189)[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13]
      2. com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:209)[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13]
      2 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:1.7.0_55]
      2. java.lang.Thread.run(Unknown Source)[na:1.7.0_55]
      2 frames
    5. Hazelcast
      HazelcastManagedThread.run
      1. com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13]
      2. com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)[hazelcast-3.4.2-atlassian-13.jar:3.4.2-atlassian-13]
      2 frames