onError method not getting invoked on LoggingProducerListener exception #2303
Unanswered
shravani154
asked this question in
Q&A
Replies: 4 comments 11 replies
-
What you are talking about is not a thrown exception, it is a log message under ERROR category.
So, probably better to inject your own In two words: the |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a logic in onError method which needs to be invoked whenever there is a LoggingProducerListener exception. I are not able to catch this exception through try catch block also. I need to know why this exception occurs and how to handle/catch these exceptions. Below is the exception I am encountering.
2022-06-10 15:22:01.126 ERROR 1 --- [ad | producer-1] o.s.k.support.LoggingProducerListener : Exception thrown when sending a message with key='null' and payload='{123, 34, 116, 114, 97, 99, 101, 115, 34, 58, 32, 123, 34, 115, 101, 114, 118, 105, 99, 101, 78, 97,...' to topic
Beta Was this translation helpful? Give feedback.
All reactions