Hi,When I am creating an actor I keep getting this exception. This is thrown only when I run it from command line. Through the IDE it's fine - it does not throw an AskTimeoutException.akka.pattern.AskTimeoutException: sending to terminated ref breaks promises at akka.pattern.AskSupport$class.ask(AskSupport.scala:76) at akka.pattern.package$.ask(package.scala:43) at akka.pattern.AskSupport$AskableActorRef.$qmark(AskSupport.scala:153) at akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:466) at
Following is the code used for creating the actor.ActorSystem actorSystem = ActorSystem.create("test");ActorRef actor = null;if(something ...) {actor = actorSystem.actorOf(new Props(new UntypedActorFactory() {@Overridepublic Actor create() {return new MyActor("param1", "param2");}}), "first");}
Roland Kuhn
Typesafe – The software stack for applications that scale.
twitter: @rolandkuhn