Skip to content

GH-2671: Improve DLQ Exception Message Header #2672

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

Merged
merged 1 commit into from
May 2, 2023

Conversation

garyrussell
Copy link
Contributor

Resolves #2671

With Spring Framework 6, NestedRuntimeException.getMessage() no longer includes the messages for nested exceptions via the cause chain.

See spring-projects/spring-framework#25162

This means that the DLQ exception message header always contains the same Failed listener message.

Find the root cause exception and include its message in the header. Ignore any nested TimestampedException and LEFE between the top LEFE and the root cause; these will still appear in the stack trace.

Resolves spring-projects#2671

With Spring Framework 6, `NestedRuntimeException.getMessage()` no longer
includes the messages for nested exceptions via the cause chain.

See spring-projects/spring-framework#25162

This means that the DLQ exception message header always contains the same
`Failed listener` message.

Find the root cause exception and include its message in the header.
Ignore any nested `TimestampedException` and `LEFE` between the top
`LEFE` and the root cause; these will still appear in the stack trace.
@artembilan artembilan merged commit 6f58505 into spring-projects:main May 2, 2023
@garyrussell garyrussell deleted the GH-2671 branch May 2, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better exception message header for DLT
2 participants