Skip to content

null context error while trying to produce message with kafkaTemplate #11728

Closed Answered by PatrickChauveau
PatrickChauveau asked this question in Q&A
Discussion options

You must be logged in to vote

This error was a side effect of a double load of otel libraries.
We had otel load at the start of the service with -javaagent option and we also had the import of opentelemetry-spring-boot-starter in our pom.xml. Removing the javaagent option solved this issue.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PatrickChauveau
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by PatrickChauveau
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants