Nullpointer in DelegatingInvocableHandler, lookup in "handlerReturnsMessage" map fails. #1947
-
Affects Version(s): \2.7.1 Nullpointer in DelegatingInvocableHandler, lookup in "handlerReturnsMessage" map fails. Two handlers (annotated with @KafkaHandler) within the same class (annotated with @KafkaListener) listening for different payload types: @KafkaHandler
private void onA(final A descriptor) {
...
}
@KafkaHandler
private void onB(final B descriptor) {
...
} After running successfully for weeks at a time we sometimes get a Nullpointer in the Spring Kafka version: 2.7.1 Any ideas on why this happens? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's a bug; the |
Beta Was this translation helpful? Give feedback.
It's a bug; the
HashMap<>
needs to be aConcurrentHashMap<>
.