Skip to content

Exception is not being logged if the response has already been committed #1130

@asolanaruiz

Description

@asolanaruiz

If you try to go to the /welcome url in my github project (https://github.com/asolanaruiz/spring-boot-sample-web-jsp) a JasperException will be thrown because the welcome.jspx file has an invalid tag.
The ErrorPageFilter will redirect you to the error page but the original exception is not shown in the console or log file.

According to the comment found in the forwardToErrorPage method of the ErrorPageFilter class, the exception should have been logged already, but in this case I don't see it. I only see the "Cannot forward to error page..." message.

This issue is a follow up of issue #748

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions