java.lang.IllegalStateException: Promise already completed.

GitHub | akka-ci | 4 months ago
  1. 0

    GitHub comment 20460#217710220

    GitHub | 9 months ago | cppexpert
    java.lang.IllegalStateException: Promise already completed.
  2. 0

    GitHub comment 57#245636208

    GitHub | 4 months ago | akka-ci
    java.lang.IllegalStateException: Promise already completed.
  3. 0

    Play Iteratees: error for simple file iteration

    Stack Overflow | 4 years ago | Dylan
    java.lang.IllegalStateException: Promise already completed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    There is some problem with changing result of flatMap to future: {code} val x = Observable(List("a")) val y = Observable(List("b")) val observable: Observable[String] = x.flatMap(x ⇒ y) observable.toFuture() {code} Code from above results in: {code} Promise already completed. java.lang.IllegalStateException: Promise already completed. at scala.concurrent.Promise$class.complete(Promise.scala:55) at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153) at scala.concurrent.Promise$class.success(Promise.scala:86) at scala.concurrent.impl.Promise$DefaultPromise.success(Promise.scala:153) at org.mongodb.scala.ObservableImplicits$ScalaObservable$$anonfun$toFuture$1.apply(ObservableImplicits.scala:332) at org.mongodb.scala.ObservableImplicits$ScalaObservable$$anonfun$toFuture$1.apply(ObservableImplicits.scala:332) at org.mongodb.scala.ObservableImplicits$ScalaObservable$$anon$1.onNext(ObservableImplicits.scala:88) at org.mongodb.scala.internal.MapObservable$$anon$1.onNext(MapObservable.scala:32) at org.mongodb.scala.internal.FoldLeftObservable$$anon$1.onComplete(FoldLeftObservable.scala:35) at org.mongodb.scala.internal.FlatMapObservable$$anon$1.onComplete(FlatMapObservable.scala:71) at org.mongodb.scala.internal.IterableObservable$$anon$1.request(IterableObservable.scala:46) at org.mongodb.scala.internal.FlatMapObservable$$anon$1$$anon$2.request(FlatMapObservable.scala:54) at org.mongodb.scala.ObservableImplicits$ScalaObservable$$anon$1.onSubscribe(ObservableImplicits.scala:86) at org.mongodb.scala.internal.MapObservable$$anon$1.onSubscribe(MapObservable.scala:28) at org.mongodb.scala.internal.FoldLeftObservable$$anon$1.onSubscribe(FoldLeftObservable.scala:32) at org.mongodb.scala.internal.FlatMapObservable$$anon$1.onSubscribe(FlatMapObservable.scala:66) ... {code} I'm using mongo-scala-driver 1.1.0 and MongoDB server 3.2.3. In debug it looks like onNext is executed once again after onComplete.

    JIRA | 11 months ago | Michal B.
    java.lang.IllegalStateException: Promise already completed.

  1. balintn 4 times, last 1 week ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Promise already completed.

    at scala.concurrent.Promise$class.complete()
  2. Scala
    Promise$DefaultPromise.complete
    1. scala.concurrent.Promise$class.complete(Promise.scala:55)
    2. scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)
    2 frames