-
Notifications
You must be signed in to change notification settings - Fork 1.6k
NPE in JsonSerializer on template.send if key is null #686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this is a good catch and our problem that we don't have this there:
I mean that is is normal in Kafka world to send Therefore this Feel free to contribute it, @Shabin ! Thank you! |
garyrussell
added a commit
to garyrussell/spring-kafka
that referenced
this issue
Jun 13, 2018
Fixes spring-projects#686 **Cherry-pick to 2.1.x, 2.0.x, 1.3.x**
artembilan
pushed a commit
that referenced
this issue
Jun 13, 2018
Fixes #686 **Cherry-pick to 2.1.x, 2.0.x, 1.3.x**
artembilan
pushed a commit
that referenced
this issue
Jun 13, 2018
Fixes #686 **Cherry-pick to 2.1.x, 2.0.x, 1.3.x** (cherry picked from commit 8dc1dcd) # Conflicts: # spring-kafka/src/main/java/org/springframework/kafka/support/serializer/JsonDeserializer.java # spring-kafka/src/main/java/org/springframework/kafka/support/serializer/JsonSerializer.java (cherry picked from commit 02d4a45)
denis554
added a commit
to denis554/spring-kafka
that referenced
this issue
Mar 27, 2019
Fixes spring-projects/spring-kafka#686 **Cherry-pick to 2.1.x, 2.0.x, 1.3.x**
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just upgraded from 1.3.4.RELEASE to 2.1.6.RELEASE and on sending a message without any key I am getting NPE.
I am calling the default send() method.
template.send(topicName, eventdata);
I coudn't find any migration steps related to this.
My kafka template configuration:
The text was updated successfully, but these errors were encountered: