Avro.AvroException: Unable to find type 'example.test.value' when Namespace isn't 'example.test.value'
See original GitHub issueDescription
Confluent.Kafka nuget version = 1.7.0 and 1.8.2 Confluent.SchemaRegistry Version=1.7.0 1.8.2 Confluent.SchemaRegistry.Serdes.Avro Version= 1.7.0 and 1.8.2 Apache Kafka version = 2.8.0 No Critical issue
ERROR xxxx - Kafka1 | Error while consuming from topics
Confluent.Kafka.ConsumeException: Local: Value deserialization error
—> Avro.AvroException: Unable to find type ‘example.test.value’ in all loaded assemblies
at Avro.Specific.ObjectCreator.<>c__DisplayClass14_0.<FindType>b__0(String _)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func
2 valueFactory)
at Avro.Specific.ObjectCreator.GetType(String name, Type schemaType)
at Avro.Specific.SpecificDefaultReader.ReadRecord(Object reuse, RecordSchema writerSchema, Schema readerSchema, Decoder dec)
at Avro.Generic.DefaultReader.Read[T](T reuse, Decoder decoder)
at Confluent.SchemaRegistry.Serdes.SpecificDeserializerImpl1.Deserialize(String topic, Byte[] array) at Confluent.SchemaRegistry.Serdes.AvroDeserializer
1.DeserializeAsync(ReadOnlyMemory1 data, Boolean isNull, SerializationContext context) at Confluent.Kafka.SyncOverAsync.SyncOverAsyncDeserializer
1.Deserialize(ReadOnlySpan1 data, Boolean isNull, SerializationContext context) at Confluent.Kafka.Consumer
2.Consume(Int32 millisecondsTimeout)
— End of inner exception stack trace —
at Confluent.Kafka.Consumer2.Consume(Int32 millisecondsTimeout) at Confluent.Kafka.Consumer
2.Consume(TimeSpan timeout)
This Error comes when consuming Avro Data from a Topic.
This error only comes when the C# namespace in that is the Avro Class isn’t “example.test.value”
When changing the namespace of the class to example.test.value the error is fixed.
I want that i can use the example.test.value Schema in a Namespace that isn’t example.test.value.
Is that possible?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
resolved https://github.com/confluentinc/confluent-kafka-dotnet/pull/1847
i think this is an issue with the avro library