I’m trying to get an akka application to work in a cluster and am running into message serialization issues. I’ve set akka.actor.serialize-messages=on to try to find all the messages that need entries in the akka.actor.serialization-bindings list. I’m finding that messages sent to self by an actor (on a timer) are getting unhandled. When I set akka.actor.serialize-messages=off, then problem goes away. Unfortunately, I need it enabled in order to run my application to find all the messages needing serialization bindings. Any ideas? We’re running akka 2.5.13.
The testing feature serialize-messages=on is very course grained since it tries to serialize all messages that are sent. Sending to self would not be need serialization.
What you can do is to extend NoSerializationVerificationNeeded for such messages, and it will not try the serialization for them.
Thanks, Patrick. That worked great.