Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98A41D06E for ; Tue, 16 Oct 2012 03:57:23 +0000 (UTC) Received: (qmail 30396 invoked by uid 500); 16 Oct 2012 03:57:23 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 30269 invoked by uid 500); 16 Oct 2012 03:57:22 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 30248 invoked by uid 99); 16 Oct 2012 03:57:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 03:57:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Tue, 16 Oct 2012 03:57:18 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 86E3E23889B8; Tue, 16 Oct 2012 03:56:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1398633 - in /cxf/branches/2.5.x-fixes: ./ rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainInvoker.java Date: Tue, 16 Oct 2012 03:56:34 -0000 To: commits@cxf.apache.org From: ffang@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121016035634.86E3E23889B8@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ffang Date: Tue Oct 16 03:56:34 2012 New Revision: 1398633 URL: http://svn.apache.org/viewvc?rev=1398633&view=rev Log: Merged revisions 1398632 via svnmerge from https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes ................ r1398632 | ffang | 2012-10-16 11:48:03 +0800 (二, 16 10 2012) | 9 lines Merged revisions 1398629 via svnmerge from https://svn.apache.org/repos/asf/cxf/trunk ........ r1398629 | ffang | 2012-10-16 11:35:43 +0800 (二, 16 10 2012) | 1 line [CXF-4565]per JAXWS spec 9.3.2.1, if outbound throw ProtocolException and No response is expected then the message processing stops and the handlerFault method of handlers shouldn't get invoked ........ ................ Modified: cxf/branches/2.5.x-fixes/ (props changed) cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainInvoker.java Propchange: cxf/branches/2.5.x-fixes/ ------------------------------------------------------------------------------ Merged /cxf/trunk:r1398629 Merged /cxf/branches/2.6.x-fixes:r1398632 Propchange: cxf/branches/2.5.x-fixes/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainInvoker.java URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainInvoker.java?rev=1398633&r1=1398632&r2=1398633&view=diff ============================================================================== --- cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainInvoker.java (original) +++ cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainInvoker.java Tue Oct 16 03:56:34 2012 @@ -277,8 +277,16 @@ public class HandlerChainInvoker { //The fault is raised from previous handlers, in this case, we only invoke handleFault //if the fault is a ProtocolException - if (fault != null && !(fault instanceof ProtocolException)) { - return true; + if (fault != null) { + if (!(fault instanceof ProtocolException)) { + return true; + } else if (!responseExpected && !messageDirectionReversed) { + // According to jsr224 9.3.2.1, + // If throw ProtocolException or a subclass: + // No response, normal message processing stops, close is called on each previously invoked handler + // in the chain, the exception is dispatched (see section 9.1.2.3). + return true; + } } if (LOG.isLoggable(Level.FINE)) {