Files
spring-integration/spring-integration-core/src
Artem Bilan 30355f243c GH-9985: Fix NPE in ReqHandlerRetryAdvice with MetricsRetryListener
Fixes: #9985
Issue link: https://github.com/spring-projects/spring-integration/issues/9985

When `RequestHandlerRetryAdvice` is supplied with a `RetryTemplate` and `MetricsRetryListener`,
the `NullPointerException` is thrown from the Micrometer `Timer`, where `name` tag cannot be `null`.
In fact, the `RetryCallback` implementation in the `RequestHandlerRetryAdvice` does not provide any `label`.

* Fix `RequestHandlerRetryAdvice` to produce label based on the `componentName` or just class name of the
AOP caller as fallback

**Auto-cherry-pick to `6.4.x` & `6.3.x`**
2025-04-22 15:43:54 -04:00
..