Hyperion
Hyperion copied to clipboard
Error thrown when using ActorRefs.Nobody
System.InvalidCastException: 'Unable to cast object of type 'NobodySurrogate' to type 'Akka.Actor.IActorRef'.'
Using Hyperion 0.9.2
Happens while sending a message that just so happens to include an IActorRef that resolves to ActorRefs.Nobody.
Found a work-around for this issue:
akka.actor {
serialize-messages = on
serializers {
hyperion = ""Akka.Serialization.HyperionSerializer, Akka.Serialization.Hyperion""
}
serialization-settings {
hyperion {
preserve-object-references = false
}
}
serialization-bindings {
""System.Object"" = hyperion
}
}
Disabling object references resolves the issue. Don't know why yet.