Hyperion icon indicating copy to clipboard operation
Hyperion copied to clipboard

Error thrown when using ActorRefs.Nobody

Open Aaronontheweb opened this issue 8 years ago • 2 comments

System.InvalidCastException: 'Unable to cast object of type 'NobodySurrogate' to type 'Akka.Actor.IActorRef'.'

Using Hyperion 0.9.2

Aaronontheweb avatar Aug 29 '17 05:08 Aaronontheweb

Happens while sending a message that just so happens to include an IActorRef that resolves to ActorRefs.Nobody.

Aaronontheweb avatar Aug 29 '17 05:08 Aaronontheweb

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.

Aaronontheweb avatar Aug 29 '17 16:08 Aaronontheweb