View | Details | Raw Unified | Return to bug 62797
Collapse All | Expand All

(-)java/org/apache/catalina/valves/ErrorReportValve.java (-3 / +3 lines)
Lines 91-96 public class ErrorReportValve extends ValveBase { Link Here
91
        // Perform the request
91
        // Perform the request
92
        getNext().invoke(request, response);
92
        getNext().invoke(request, response);
93
93
94
        Throwable throwable = (Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION);
95
94
        if (response.isCommitted()) {
96
        if (response.isCommitted()) {
95
            if (response.setErrorReported()) {
97
            if (response.setErrorReported()) {
96
                // Error wasn't previously reported but we can't write an error
98
                // Error wasn't previously reported but we can't write an error
Lines 103-115 public class ErrorReportValve extends ValveBase { Link Here
103
                }
105
                }
104
                // Close immediately to signal to the client that something went
106
                // Close immediately to signal to the client that something went
105
                // wrong
107
                // wrong
106
                response.getCoyoteResponse().action(ActionCode.CLOSE_NOW, null);
108
                response.getCoyoteResponse().action(ActionCode.CLOSE_NOW, throwable);
107
            }
109
            }
108
            return;
110
            return;
109
        }
111
        }
110
112
111
        Throwable throwable = (Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION);
112
113
        // If an async request is in progress and is not going to end once this
113
        // If an async request is in progress and is not going to end once this
114
        // container thread finishes, do not process any error page here.
114
        // container thread finishes, do not process any error page here.
115
        if (request.isAsync() && !request.isAsyncCompleting()) {
115
        if (request.isAsync() && !request.isAsyncCompleting()) {

Return to bug 62797