Anish Nair
02/14/2025, 1:30 AMprivate val kafkaContainer = KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.4.0")).withKraft()
Creation of topic was successfull. For a test data in the kafka topic I'm pushing a sample message by creating producer.
KafkaInit.produceMessage(topic, testMessage)
The issue I face is so when I start my KafkaConsumer for which I'm writing up test. So when I push the test message to the kafka topic and when the KafkaConsumer starts reading it I get the below exception multiple times
Exception caught in user function running stage, registering WC as failed, returning to mailbox. Context: PollContextInternal(pollContext=PollContext
{"stack_trace":"java.lang.ClassCastException: null\n","type":"java.lang.ClassCastException"}
Stylianos Gakis
02/14/2025, 8:37 AM