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

(-)java/org/apache/catalina/valves/ErrorReportValve.java (-1 / +2 lines)
Lines 272-282 Link Here
272
        trace.append(t.toString()).append('\n');
272
        trace.append(t.toString()).append('\n');
273
        StackTraceElement[] elements = t.getStackTrace();
273
        StackTraceElement[] elements = t.getStackTrace();
274
        int pos = elements.length;
274
        int pos = elements.length;
275
        for (int i = 0; i < elements.length; i++) {
275
        for (int i = elements.length - 1; i >= 0; i--) {
276
            if ((elements[i].getClassName().startsWith
276
            if ((elements[i].getClassName().startsWith
277
                 ("org.apache.catalina.core.ApplicationFilterChain"))
277
                 ("org.apache.catalina.core.ApplicationFilterChain"))
278
                && (elements[i].getMethodName().equals("internalDoFilter"))) {
278
                && (elements[i].getMethodName().equals("internalDoFilter"))) {
279
                pos = i;
279
                pos = i;
280
                break;
280
            }
281
            }
281
        }
282
        }
282
        for (int i = 0; i < pos; i++) {
283
        for (int i = 0; i < pos; i++) {

Return to bug 55159