@EmbeddedKafka + Kafka 3.6.0 Compatibility: Seeking Advice on NoClassDefFoundError #3952
Unanswered
HenriqueKazzak
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Try to follow these recommendations: https://docs.spring.io/spring-kafka/docs/2.9.13/reference/html/#update-deps. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm encountering a
NoClassDefFoundErrorwhen trying to use@EmbeddedKafkawith Spring Boot 2.7.18 and Java 11. I'm usingkafka-clients:3.6.0. This specific version ofkafka-clientsis mandated by company policy, so I can't easily change it.I haven't been able to find clear documentation regarding the compatibility of this specific
kafka-clientsversion with Spring Boot 2.7.18 and Java 11, especially in the context of using@EmbeddedKafkafor testing.Dependency snippets from my project:
When I run my tests, I get the following error:
Here's a snippet from my dependency tree (focused on
spring-kafka-test):As you can see from the dependency tree,
spring-kafka-test2.9.13 pulls inkafka-clients:3.1.2for testing purposes. If I explicitly setkafka-clientsto version 3.1.2, the tests work fine.My core question is:
Is it possible to use
spring-kafkaandspring-kafka-test2.9.13 with Spring Boot 2.7.18, Java 11, andkafka-clients 3.6.0? Or do I need to use a different version combination to ensure compatibility with@EmbeddedKafka?Any insights or recommendations would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions