embeddedkafka / embedded-kafka

A library that provides an in-memory Kafka instance to run your tests against.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embedded kafka not starting after upgrading spring-boot-starter version to 2.3.12

nvsarath opened this issue · comments

When migrating spring-boot-starter version from 2.1.10.RELEASE to 2.3.12.RELEASE, we are facing below issue (stacktrace). Below is the pom.xml snippet

XXXXXXXXXXXX:tokenization-streaming-service XXXXX$ mvn dependency:tree | grep kafka
[INFO] +- org.springframework.kafka:spring-kafka:jar:2.5.14.RELEASE:compile
[INFO] | - org.apache.kafka:kafka-clients:jar:2.5.1:compile
[INFO] | +- org.apache.kafka:kafka_2.11:jar:1.0.1:compile
[INFO] +- io.confluent:kafka-avro-serializer:jar:4.0.1:compile
[INFO] | +- io.confluent:kafka-schema-registry-client:jar:4.0.1:compile
[INFO] +- org.springframework.kafka:spring-kafka-test:jar:2.5.14.RELEASE:test
[INFO] | +- org.apache.kafka:kafka-clients:jar:test:2.5.1:test
[INFO] | +- org.apache.kafka:kafka-streams:jar:2.5.1:test
[INFO] | | +- org.apache.kafka:connect-json:jar:2.5.1:test
[INFO] | | | - org.apache.kafka:connect-api:jar:2.5.1:test
[INFO] | +- org.apache.kafka:kafka-streams-test-utils:jar:2.5.1:test
[INFO] | +- org.apache.kafka:kafka_2.12:jar:2.5.1:test
[INFO] | +- org.apache.kafka:kafka_2.12:jar:test:2.5.1:test

Stacktrace

16:46:05.373 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [router.integration.testing.EventStreamIT]
16:46:05.376 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [router.integration.testing.EventStreamIT]
16:46:05.376 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [router.integration.testing.EventStreamIT]
16:46:05.406 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [router.integration.testing.EventStreamIT]
16:46:05.407 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [router.integration.testing.EventStreamIT]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.575 s <<< FAILURE! - in router.integration.testing.EventStreamIT
[ERROR] router.integration.testing.EventStreamIT Time elapsed: 0.575 s <<< ERROR!
java.lang.NoSuchMethodError: kafka.utils.Logging.$init$(Lkafka/utils/Logging;)V

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] EventStreamIT » NoSuchMethod kafka.utils.Logging.$init$(Lkafka/utils/Logging;)...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0