Skip to content

Akka: serialize-messages barfs on built-in Akka.Cluster / Akka.Remote types #3724

@Aaronontheweb

Description

@Aaronontheweb

Version: Akka.NET v1.3.11
Issue:

When akka.actor.serialize-messages = on, built-in Akka.Cluster and (possibly) Akka.Remote get serialized with JSON.NET (the default object serializer) instead of their specific serializer registrations, and thus this exception gets thrown:

Cause: Newtonsoft.Json.JsonSerializationException: Unable to find a constructor to use for type Akka.Cluster.InternalClusterAction+PublishChanges. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path 'NewGossip', line 1, position 97.

Reproduction from @Dan-Albrecht: https://github.com/Dan-Albrecht/AkkaRepro

Suspect that the issue is that the underlying serialize-messages code isn't correctly looking up the customer serializer correctly.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions