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

filterChain.doFilter() throwing jakarta.servlet.ServletException: Request processing failed: {the real exception} #65

Open
joel021 opened this issue Jan 5, 2024 · 0 comments

Comments

@joel021
Copy link

joel021 commented Jan 5, 2024

doFilter is throwing ServletException when any exception occurs in the controller or service layer instead of the real exception. For example, if a user is duplicated and the service is set to throw ConflictException to be caught by a GlobalExceptionHandler, filterChain.doFilter(request, response) throws "ServletException: Request processing failed: ConflictException" instead of the GlobalExceptionHandler catching it. The GlobalExceptionHandler is supposed to catch that exception. Besides, this failure should not happen when or before perform doFilterInternal(), right?

the error occurs in :
filterChain.doFilter(request, response);
raise-errror

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

No branches or pull requests

1 participant