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

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

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -