I am trying to build a working example with avro message producer, kafka and avro consumer using spring boot, spring cloud stream schema registry, kafka binder. The following error occurs when consuming messages:
ERROR 7059 --- [afka-listener-1] o.s.c.s.b.k.KafkaMessageChannelBinder : Unable to deserialize [io.igx.android.Sensor] using the contentType [application/x-java-object;type=io.igx.android.Sensor] java.lang.NullPointerException
I have spring.cloud.stream.bindings.output.contentType=application/+avro on consumer side and spring.cloud.stream.bindings.output.contentType=application/+avro on producer side.
Why is the consumer not seeing and using avro content type instead application/x-java-object.