Return-Path: Delivered-To: apmail-sling-commits-archive@www.apache.org Received: (qmail 3848 invoked from network); 1 Oct 2010 23:09:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 23:09:50 -0000 Received: (qmail 24427 invoked by uid 500); 1 Oct 2010 23:03:09 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 24372 invoked by uid 500); 1 Oct 2010 23:03:08 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 24365 invoked by uid 99); 1 Oct 2010 23:03:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 23:03:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 23:03:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7B60F23889E3; Fri, 1 Oct 2010 23:02:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1003700 - /sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingRequestProcessorImpl.java Date: Fri, 01 Oct 2010 23:02:45 -0000 To: commits@sling.apache.org From: fmeschbe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101001230245.7B60F23889E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: fmeschbe Date: Fri Oct 1 23:02:45 2010 New Revision: 1003700 URL: http://svn.apache.org/viewvc?rev=1003700&view=rev Log: SLING-1815 Don't let IOException be handled by the Throwable catch-all but instead rethrow it to be handled by the caller as declared in the method signature Modified: sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingRequestProcessorImpl.java Modified: sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingRequestProcessorImpl.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingRequestProcessorImpl.java?rev=1003700&r1=1003699&r2=1003700&view=diff ============================================================================== --- sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingRequestProcessorImpl.java (original) +++ sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingRequestProcessorImpl.java Fri Oct 1 23:02:45 2010 @@ -205,6 +205,11 @@ public class SlingRequestProcessorImpl i log.error("{} , sending status {}", errorMessage, status); servletResponse.sendError(status, errorMessage); + } catch (IOException ioe) { + + // forward IOException up the call chain to properly handle it + throw ioe; + } catch (Throwable t) { // if we have request data and a non-null active servlet name