Created
November 2, 2012 09:41
-
-
Save arturaz/3999789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private[this] lazy val system = ActorSystem( | |
"lobby", ConfigFactory.load.getConfig("application.lobby") | |
) | |
private[this] def actors = config.underlying. | |
getStringList("application.lobby.nodes").map { path => | |
logger.info("Trying to get actor for " + path) | |
logger.info("System %s, terminated: %s".format( | |
system.toString, system.isTerminated | |
)) | |
val actor = system.actorFor(path) | |
logger.info("Actor: %s, terminated: %s".format( | |
actor.toString(), actor.isTerminated | |
)) | |
actor | |
}.toList |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[info] application - Request GET /dev/lobby/pick/0.3/0.5 at Fri Nov 02 11:40:10 EET 2012 (uid: si61kx) | |
[info] application - Parameters: {} | |
[debug] application - Headers: {"HOST": "localhost:9000", "USER-AGENT": "Wget/1.13.4 (linux-gnu)", "ACCEPT": "*/*", "CONNECTION": "Keep-Alive"} | |
[debug] application - Body: | |
AnyContentAsEmpty | |
[info] application - Trying to get actor for akka://geoliser@localhost:2552/user/router | |
[info] application - System akka://lobby, terminated: false | |
[info] application - Actor: Actor[akka://lobby/deadLetters], terminated: true | |
[info] application - Completed async in 23ms | |
[error] play - Waiting for a promise, but got an error: sending to terminated ref breaks promises | |
akka.pattern.AskTimeoutException: sending to terminated ref breaks promises | |
at akka.dispatch.DefaultPromise.result(Future.scala:875) [akka-actor-2.0.3.jar:2.0.3] | |
at akka.dispatch.Await$.result(Future.scala:74) ~[akka-actor-2.0.3.jar:2.0.3] | |
at play.api.libs.concurrent.AkkaPromise.await(Akka.scala:43) ~[play_2.9.1.jar:2.0.4] | |
at play.api.libs.concurrent.Promise$class.await(Promise.scala:55) ~[play_2.9.1.jar:2.0.4] | |
at play.api.libs.concurrent.AkkaPromise.await(Akka.scala:28) ~[play_2.9.1.jar:2.0.4] | |
at play.api.libs.concurrent.Promise$class.value(Promise.scala:53) ~[play_2.9.1.jar:2.0.4] | |
Caused by: akka.pattern.AskTimeoutException: sending to terminated ref breaks promises | |
at akka.pattern.AskSupport$class.ask(AskSupport.scala:76) ~[akka-actor-2.0.3.jar:2.0.3] | |
at akka.pattern.package$.ask(package.scala:43) ~[akka-actor-2.0.3.jar:2.0.3] | |
at akka.pattern.AskSupport$AskableActorRef.$qmark(AskSupport.scala:153) ~[akka-actor-2.0.3.jar:2.0.3] | |
at models.Lobby$$anonfun$1.apply(Lobby.scala:115) ~[classes/:na] | |
at models.Lobby$$anonfun$1.apply(Lobby.scala:115) ~[classes/:na] | |
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194) ~[scala-library.jar:0.11.3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment