Hi,
On Wed, Apr 1, 2015 at 8:12 AM, Krishna Kadam <[email protected]> wrote: > Hi All, > I got the same problem while reusing the akka actors by their names, you > have mentioned accessing of Future object returned by using > getSender.tell() method. I understood the cause of problem, but you have > not mentioned solution for this problem. > The solution is that you should not close over mutable state in Future callbacks. The sender() call accesses a mutable field. The solution is simply to not do that. > 1. What configuration should be used to avoid this problem? > This is not related to any configuration, this is a user bug. > > 2. Is there any other way to avoid this problem? > Don't close over mutable state in asynchronous callbacks. -Endre > > > Thanks & Regards > Krishna Kadam > > -- > >>>>>>>>>> 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. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> 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.
