ResponseEntityExceptionHandler
with @ControllerAdvice
is Ignored when using spring-modulith-observability
#945
Labels
in: observability
Observability support
meta: waiting for feedback
Waiting for feedback of the original reporter
type: bug
Something isn't working
Issue: ResponseEntityExceptionHandler with @ControllerAdvice is Ignored When Using spring-modulith-observability
Description
When spring-modulith-observability is included in the project dependencies, a custom class that extends ResponseEntityExceptionHandler and is annotated with @ControllerAdvice fails to catch exceptions as expected.
It appears that the exception handling flow is being disrupted, and the @ControllerAdvice is completely ignored.
From initial investigation, the issue seems to be related to the ModuleEntryInterceptor class. The interceptor wraps the controller method invocation (MethodInvocation.proceed()), and it appears to interfere with Spring MVC’s exception handling mechanism.
Steps to Reproduce
Expected Behavior
Actual Behavior
Suspected Cause
Environment
The text was updated successfully, but these errors were encountered: