Hi Barry, this means that `context` must have been null, which cannot really be. You cannot by chance upgrade to a later version, preferably 2.3.2? There were some things that were fixed in ActorCell within the past two release cycles, but I do not recall this particular problem (which basically means that terminate() is called twice—or your program is doing something truly despicable ;-) ).
Regards, Roland On Thu, May 8, 2014 at 3:10 AM, Barry Kaplan <meme...@gmail.com> wrote: > override def postStop() { > super.postStop() > > stateData match { > case Connected(agent, _, _) => > if (stateName == Streaming) { > agent ! AgentService.StopStreaming > } > context.unwatch(agent) > // DeviceRulesProcessor.scala:250 > > case _ => > } > ... > > On Wednesday, May 7, 2014 6:09:04 PM UTC-7, Barry Kaplan wrote: >> >> Can't reproduce in a test yet, but it does happen from time to time: >> >> java.lang.NullPointerException: null >> at systeminsights.devicerules.service.DeviceRulesProcessor. >> postStop(DeviceRulesProcessor.scala:250) ~[vimana.jar:2.0] >> at >> akka.actor.dungeon.FaultHandling$class.finishTerminate(FaultHandling.scala:194) >> ~[vimana.jar:2.0] >> at akka.actor.dungeon.FaultHandling$class.terminate(FaultHandling.scala:159) >> ~[vimana.jar:2.0] >> at akka.actor.ActorCell.terminate(ActorCell.scala:306) ~[vimana.jar:2.0] >> at akka.actor.ActorCell.systemInvoke(ActorCell.scala:369) >> ~[vimana.jar:2.0] >> at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:256) >> ~[vimana.jar:2.0] >> at akka.dispatch.Mailbox.run(Mailbox.scala:211) ~[vimana.jar:2.0] >> at >> akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:506) >> [vimana.jar:2.0] >> at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) >> [vimana.jar:2.0] >> at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue. >> runTask(ForkJoinPool.java:1339) [vimana.jar:2.0] >> at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) >> [vimana.jar:2.0] >> at >> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) >> [vimana.jar:2.0] >> > -- > >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. > To post to this group, send email to akka-user@googlegroups.com. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Akka Team Typesafe - The software stack for applications that scale 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.