Chanan, can you post any more details of your actor implementation? Usually when I've seen this sort of situation, it's because some aspect of the actor behavior is being implemented in an async context where the sender reference is stale when the logging (and other behavior) is actually executed.
On Jun 16, 2014, at 1:34 PM, Chanan Braunstein <[email protected]> wrote: > Hello, > > I would paste code, but I am not sure how to get a minimal example. I am > trying to debug an issue where messages from child actors are not returning > back to the senders. Instead I see logs of deadletters. I am not killing my > actors anywhere and I also added postStop messages to see if they are > stopping which they arent. Finally, I added this line: > > Logger.debug("self: " + self.path().toString() + " Sender: " + > sender().path().toString() + " parent: " + > context().parent().path().toString()); > > The log output is: > > [debug] application - self: > akka://application/user/gradebook/courses/grid_C0/init/w1 Sender: > akka://application/deadLetters parent: > akka://application/user/gradebook/courses/grid_C0/init > > Which is weird since the parent is the sender. The creation line is: > > final ActorRef worker1 = context().actorOf(Props.create(DataWorker.class, > session), "w1"); > > worker1.tell(new SelectStudents(request.courseId), self()); > > So I am not sure how this is possible. Any ideas? > > > > Thanks, > > Chanan > > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
