--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Roland Kuhn
Typesafe – The software stack for applications that scale.
twitter: @rolandkuhn
Atleast now this is available in the archives! :-)
It looks like if messages arrive fast enough (or something) after having thrown an exception, you can find yourself in your receive() with "context" being null. I haven't been able to reproduce this after switching away from the singleton.
And for what its worth, I don't really care about enforsing a singleton, the actor naming does that easy enough. I ran into this out of laziness thinking I only ever need one of these so I save myself writing "new".
sRp
It looks like if messages arrive fast enough (or something) after having thrown an exception, you can find yourself in your receive() with "context" being null. I haven't been able to reproduce this after switching away from the singleton.
And for what its worth, I don't really care about enforsing a singleton, the actor naming does that easy enough. I ran into this out of laziness thinking I only ever need one of these so I save myself writing "new".
On Fri, May 25, 2012 at 1:25 PM, Scott Parish <srpa...@gmail.com> wrote:It looks like if messages arrive fast enough (or something) after having thrown an exception, you can find yourself in your receive() with "context" being null. I haven't been able to reproduce this after switching away from the singleton.
And for what its worth, I don't really care about enforsing a singleton, the actor naming does that easy enough. I ran into this out of laziness thinking I only ever need one of these so I save myself writing "new".
class My extends Actor {def receive = { case some => ... }}system.actorOf(Props[My]) is pretty short