You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While browsing through the code of the ReplyingKafkaTemplate, I noticed the following:
According to the parent specifications of the sendAndReceive(ProducerRecord<K, V> record, Duration replyTimeout) method in ReplyingKafkaOperations, the reply timeout should be set to the default value if a null value is passed as argument. However, I don't see any check for that in the implementation and get an NullPointerException from the scheduler when passing the null value. I guess something is missing here.
The sendAndReceive(Message<?> message, Duration replyTimeout, @Nullable ParameterizedTypeReference<P> returnType) method takes the timeout in parameter but never uses it. I guess the first line in the implementation should be
Resolvesspring-projects#1883
NPE when `null` `replyTimeout` supplied (javadoc says it's allowed and means use default).
`replyTimeout` argument ignored on message-based methods.
**cherry-pick to 2.7.x**
Resolves#1883
NPE when `null` `replyTimeout` supplied (javadoc says it's allowed and means use default).
`replyTimeout` argument ignored on message-based methods.
**cherry-pick to 2.7.x**
Resolves#1883
NPE when `null` `replyTimeout` supplied (javadoc says it's allowed and means use default).
`replyTimeout` argument ignored on message-based methods.
**cherry-pick to 2.7.x**
Hi,
While browsing through the code of the ReplyingKafkaTemplate, I noticed the following:
sendAndReceive(ProducerRecord<K, V> record, Duration replyTimeout)
method in ReplyingKafkaOperations, the reply timeout should be set to the default value if a null value is passed as argument. However, I don't see any check for that in the implementation and get anNullPointerException
from the scheduler when passing the null value. I guess something is missing here.sendAndReceive(Message<?> message, Duration replyTimeout, @Nullable ParameterizedTypeReference<P> returnType)
method takes the timeout in parameter but never uses it. I guess the first line in the implementation should beinstead of
I hope these comments are valuable and I didn't misunderstand something.
Regards,
Jeremy
The text was updated successfully, but these errors were encountered: