Here\'s what I\'m finding, and for the life of me I can\'t navigate to the reason. I\'m creating \"printer\" actors that basically either do nothing, or print a message bas
One solution is to use the Scheduler, and instead of
context.stop(self)
use:
system.scheduler.scheduleOnce(1 second) {
self ! PoisonPill
}
I ran into the same problem with my akka project. Here is my question "Dead Letters encountered" error while running AKKA remote actors
Generally dead letter encountered occurs when there is no more worker actor to receive the message sent by master. You should make sure your worker actor is alive when your master is sending it a task or message.
What you are seeing here is that DeathWatchNotifications are not processed, meaning that the actor (the Router) was still watching its children when it terminated. This is not automatically a sign of trouble as documented (but we should make it clearer in the case of this particular message). In this case the only way to get rid of this message is to make sure that router and routees do not terminate "at the same time".