davsclaus opened a new pull request, #24721: URL: https://github.com/apache/camel/pull/24721
_Claude Code on behalf of davsclaus_ ## Summary When `asyncConsumer=true` and an exchange fails after the listener method has already returned (async completion), the failure was silently dropped because `EndpointMessageListener` called `endpoint.getExceptionHandler()` which is `null` by default, with no fallback. The fix uses `consumer.getExceptionHandler()` instead, which always has a default `LoggingExceptionHandler` (set by `DefaultConsumer` constructor). This matches the canonical pattern used by `DefaultConsumer.DefaultConsumerCallback` and other components like camel-pulsar. The same bug in camel-sjms has been filed as CAMEL-24083. ## Changes - **`EndpointMessageListener.java`**: Changed the async failure path from `endpoint.getExceptionHandler()` (nullable, no fallback) to `consumer.getExceptionHandler()` (always non-null) ## Test plan - [x] All existing tests pass (`mvn verify` — 35 tests, 0 failures) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
