Skip to content
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

RocketMQ send message async cause the NullPointerException #4899

Closed
hellochenpc opened this issue Dec 14, 2021 · 0 comments · Fixed by #4901
Closed

RocketMQ send message async cause the NullPointerException #4899

hellochenpc opened this issue Dec 14, 2021 · 0 comments · Fixed by #4901
Labels
bug Something isn't working

Comments

@hellochenpc
Copy link

hellochenpc commented Dec 14, 2021

Describe the bug
RocketMQ send message async will cause the NullPointerException.

The exception stacktrace is that:
exception_stack

When we use RocketMQ send the message async, the SendResult will be NULL. The part of RocketMQ Client code is:
ope

After send message, RocketMQ Client will execute the method 'executeSendMessageHookAfter' to do the method 'sendMessageAfter' of all 'SendMessageHook'. The SendMessageHook of Opentelemetry will get the messageId from SendResult (but it's NULL), so the NullPointerException occurs:
null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant