You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version Information
Akka 1.4.38
Akka.Serialization.Hyperion 1.4.38
Akka.Streams.Kafka 1.2.1
Describe the bug
When setting serialize-messages=on in the HOCON file while using Hyperion I get an exception complaining about an ambiguous match that was found.
Failed to serialize and deserialize payload object Swallowing exception during message send
Cause: System.Runtime.Serialization.SerializationException: Failed to serialize and deserialize payload object [Akka.Streams.Kafka.Stages.Consumers.Actors.KafkaConsumerActor`2+Internal+Poll`2[Confluent.Kafka.Ignore,System.Byte[],Confluent.Kafka.Ignore,System.Byte[]]]. Envelope: [<Akka.Streams.Kafka.Stages.Consumers.Actors.KafkaConsumerActor`2+Internal+Poll`2[Confluent.Kafka.Ignore,System.Byte[],Confluent.Kafka.Ignore,System.Byte[]]> from [akka://ticker/system/kafka-consumer-2#430199385]], Actor type: [Akka.Streams.Kafka.Stages.Consumers.Actors.KafkaConsumerActor`2[Confluent.Kafka.Ignore,System.Byte[]]]
---> Hyperion.ValueSerializers.UnsupportedTypeException: Ambiguous match found.
at Hyperion.ValueSerializers.UnsupportedTypeSerializer.WriteManifest(Stream stream, SerializerSession session)
at Hyperion.Extensions.StreamEx.WriteObject(Stream stream, Object value, Type valueType, ValueSerializer valueSerializer, Boolean preserveObjectReferences, SerializerSession session)
If I don't use Hyperion but still leave serialize-messages = on enabled so that it uses Json serialization I get the following exception:
System.Runtime.Serialization.SerializationException: Failed to serialize and deserialize payload object [Akka.Streams.Kafka.Stages.Consumers.Actors.KafkaConsumerActor`2+Internal+Poll`2[Confluent.Kafka.Ignore,System.Byte[],Confluent.Kafka.Ignore,System.Byte[]]]. Envelope: [<Akka.Streams.Kafka.Stages.Consumers.Actors.KafkaConsumerActor`2+Internal+Poll`2[Confluent.Kafka.Ignore,System.Byte[],Confluent.Kafka.Ignore,System.Byte[]]> from [ticker://book/system/kafka-consumer-3#490851764]], Actor type: [Akka.Streams.Kafka.Stages.Consumers.Actors.KafkaConsumerActor`2[Confluent.Kafka.Ignore,System.Byte[]]]
---> Akka.Actor.ActorInitializationException: Do not create actors using 'new', always create them using an ActorContext/System
As soon as I remove serialize-messages = on the exceptions disappear.
To Reproduce
Steps to reproduce the behavior:
Add the following configuration to your HOCON file.
actor {
serialize-messages = on
serializers {
hyperion = "Akka.Serialization.HyperionSerializer, Akka.Serialization.Hyperion"
}
serialization-bindings {
"System.Object" = hyperion
}
}
Make sure that you use Akka.Streams.Kafka to consume from a Kafka topic.
Run your application.
Expected behavior
Serialization / Deserialization should work fine for Akka.Streams.Kafka using Hyperion or Json.
Actual behavior
Getting serialization/deserialization exceptions when enabling local serialization via serialize-messages = on
Environment
.Net 6
Windows
The text was updated successfully, but these errors were encountered:
Thanks for reporting this - I think we need to tag this plugins internal messages with INoSerializationVerificationNeeded so they get skipped during serialize-all-messages=on.
Version Information
Akka 1.4.38
Akka.Serialization.Hyperion 1.4.38
Akka.Streams.Kafka 1.2.1
Describe the bug
When setting
serialize-messages=on
in the HOCON file while using Hyperion I get an exception complaining about an ambiguous match that was found.If I don't use Hyperion but still leave
serialize-messages = on
enabled so that it uses Json serialization I get the following exception:As soon as I remove
serialize-messages = on
the exceptions disappear.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Serialization / Deserialization should work fine for Akka.Streams.Kafka using Hyperion or Json.
Actual behavior
Getting serialization/deserialization exceptions when enabling local serialization via
serialize-messages = on
Environment
.Net 6
Windows
The text was updated successfully, but these errors were encountered: