Skip to content

Commit 75375f0

Browse files
garyrussellartembilan
authored andcommitted
Improve exception message with jar mismatch
1 parent 66753f3 commit 75375f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-kafka-test/src/main/java/org/springframework/kafka/test/rule/KafkaEmbedded.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ public class KafkaEmbedded extends ExternalResource implements KafkaRule, Initia
104104
int.class, scala.Option.class, int.class, boolean.class);
105105
}
106106
catch (NoSuchMethodException | SecurityException e) {
107-
throw new RuntimeException("Failed to determine TestUtils.createBrokerConfig() method");
107+
throw new RuntimeException("Failed to determine TestUtils.createBrokerConfig() method, "
108+
+ "possible mismatched versions of the client/broker jars; see the appendix in "
109+
+ "the reference manual when overriding kafka-clients to version " + clientVersion);
108110
}
109111
}
110112
else {

0 commit comments

Comments
 (0)