java - Akka message is null -


i playing akka framework java, version 2.3.9 going fine, have issue callback. when run callback getsender().tell(null, self());

i in logs

[akka://system/user/towerofdeath:current:266:ceil:34] message null     akka.actor.invalidmessageexception: message null     @ akka.pattern.promiseactorref.$bang(asksupport.scala:266)     @ akka.actor.actorref.tell(actorref.scala:123) 

it's fine, can't send null, made small generic message , problem solved. if error happens, actor dies. believe possible produce bag, send object, null.

hot restore actor in case?

thanks help.

use supervision, allows parent actor decide how deal failures (bugs) that:

here's example: http://doc.akka.io/docs/akka/2.3.14/java/fault-tolerance.html#creating_a_supervisor_strategy

for more information:

http://doc.akka.io/docs/akka/2.3.14/general/supervision.html http://doc.akka.io/docs/akka/2.3.14/java/fault-tolerance.html


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -