Sending message remotely from one Node1 to other remote Node2 getting below error:
Encoder[(akka://sys)] Failed to serialize message [ActorSelection(Class RemoteMessage)].
RemoteMessage class implements Serializable
The error message on the screenshot indicates there’s some class in your code that doenst’ seem to have a serializer defined. Since Akka 2.6.0 when a class has no serializer defined that error is trigger. Before, Akka would fallback to using Java’s default serialization mechanism but that came with some issues itself.