Closed MichaelDrogalis closed 3 years ago
This problem is not just when using the TopologyTestDriver - the NullPointerException occurs when running against a real Kafka server too if you forget to configure the Schema Registry URL. This is an incredibly confusing and unhelpful exception that I keep re-discovering as I prototype code and then waste a ton of time trying various fixes before remembering that its the registry URL config missing!
I have a topic with events serialized in Avro and Schema Registry, so I'm using the SpecificAvroSerializer and SpecificAvroDeserializer serdes. But when I use the TopologyTestDriver, I encountered the following error:
I eventually found out that this is because I need to manually configure the serdes to use a Schema Registry URL, since the test driver skips through the code path to connect to Schema Registry on its own:
We should either change the error message to something more helpful, or make changes to avoid having users configure their serdes in this scenario.