Skip to content

Commit 5fe9d5d

Browse files
committed
Improve exception message with jar mismatch
(currently commented in this version).
1 parent 6116966 commit 5fe9d5d

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
@@ -103,7 +103,9 @@ public class KafkaEmbedded extends ExternalResource implements KafkaRule, Initia
103103
// int.class, scala.Option.class, int.class, boolean.class);
104104
// }
105105
// catch (NoSuchMethodException | SecurityException e) {
106-
// throw new RuntimeException("Failed to determine TestUtils.createBrokerConfig() method");
106+
// throw new RuntimeException("Failed to determine TestUtils.createBrokerConfig() method, "
107+
// + "possible mismatched versions of the client/broker jars; see the appendix in "
108+
// + "the reference manual when overriding kafka-clients to version " + clientVersion);
107109
// }
108110
// }
109111
// else {

0 commit comments

Comments
 (0)