Settings "avro.specific.reader" via Spring results in a class cast exception
AbstractAvroSnapshotDeserializer assumes type boolean for the property entry in its config map.
It uses the following line in its doInit()-Method
useSpecificAvroReader = (boolean) getValue(config, SPECIFIC_AVRO_READER, false);
Settings this property using Spring results in its type being a String. Changing that to:
useSpecificAvroReader = Boolean.valueOf(getValue(config, SPECIFIC_AVRO_READER, false));
would fix the issue.
@gonozalviii: Can you raise a PR for this?
I'm facing the same issue, using com.hortonworks.registries.schemaregistry.serdes.avro.kafka.KafkaAvroDeserializer with Spring Boot.
As mentioned by @gonozalviii , would it be possible to get the given fix for this ?
@raju-saravanan PR: https://github.com/hortonworks/registry/pull/730
Fixed.