Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 71713 invoked from network); 18 Aug 2004 04:27:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Aug 2004 04:27:02 -0000 Received: (qmail 24173 invoked by uid 500); 18 Aug 2004 04:26:55 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 24134 invoked by uid 500); 18 Aug 2004 04:26:54 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 24125 invoked by uid 99); 18 Aug 2004 04:26:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [64.233.170.194] (HELO mproxy.gmail.com) (64.233.170.194) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 17 Aug 2004 21:26:51 -0700 Received: by mproxy.gmail.com with SMTP id 79so158414rnl for ; Tue, 17 Aug 2004 21:26:48 -0700 (PDT) Received: by 10.38.14.76 with SMTP id 76mr263752rnn; Tue, 17 Aug 2004 21:26:48 -0700 (PDT) Message-ID: <19e0530f04081721264e8d71e8@mail.gmail.com> Date: Wed, 18 Aug 2004 09:56:48 +0530 From: Davanum Srinivas Reply-To: dims@apache.org To: axis-dev@ws.apache.org Subject: Re: [jira] Updated: (AXIS-1513) Throwing SOAPFaultException in JAX-RPC (servier) handler handleRequest method results in an empty SOAP message being sent back In-Reply-To: <20040817191227.6314.qmail@web81602.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20040817191227.6314.qmail@web81602.mail.yahoo.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N done. thanks. -- dims On Tue, 17 Aug 2004 12:12:27 -0700 (PDT), Shantanu Sen wrote: > Can someone please check in the patch that is attached > with this bug. I believe this should make it to the > 1.2 release. > > Thanks, > Shantanu > > --- axis-dev@ws.apache.org wrote: > > > The following issue has been updated: > > > > Updater: Shantanu Sen (mailto:ssen@pacbell.net) > > Date: Mon, 16 Aug 2004 1:05 AM > > Changes: > > Attachment changed to SOAPService.java > > > > > --------------------------------------------------------------------- > > For a full history of the issue, see: > > > > > > > http://issues.apache.org/jira/browse/AXIS-1513?page=history > > > > > --------------------------------------------------------------------- > > View the issue: > > http://issues.apache.org/jira/browse/AXIS-1513 > > > > Here is an overview of the issue: > > > --------------------------------------------------------------------- > > Key: AXIS-1513 > > Summary: Throwing SOAPFaultException in JAX-RPC > > (servier) handler handleRequest method results in an > > empty SOAP message being sent back > > Type: Bug > > > > Status: Unassigned > > Priority: Major > > > > Project: Axis > > Components: > > Basic Architecture > > Versions: > > current (nightly) > > 1.2 Beta > > > > Assignee: > > Reporter: Shantanu Sen > > > > Created: Mon, 16 Aug 2004 1:03 AM > > Updated: Mon, 16 Aug 2004 1:05 AM > > Environment: W2K, Axis 1.2 nightly build. > > > > Description: > > Set up a service with one or more server side > > JAX-RPC handler classes. Throw a SOAPFaultException > > from the handleRequest method of a handler class. > > The runtime correctly calls the handleFault method > > of the same class and walks back the handler chain > > calling the handleFault of each handler. > > > > However, even if a new SOAP message is created by a > > handler and the context set with this new SOAP > > message (which is set with the appropriate fault), > > the SOAP message returned to the caller is empty. > > > > The bug seems to be the setting of the pivot point > > is done after the handleFault is called on the > > handler chain in SOAPService.java. So the message > > set on the current context by the handler is set as > > the requestMessage and the NOT as the > > responseMessage. > > > > The fix is to invoke setPivotPoint(true) before > > calling the handleFault on the handler chain in the > > invoke method. Here is the diff. > > > > =========== > > > C:\axis-build\ws-axis\java\src\org\apache\axis\handlers\soap>cvs > > diff > > cvs server: Diffing . > > Index: SOAPService.java > > > =================================================================== > > RCS file: > > > /home/cvspublic/ws-axis/java/src/org/apache/axis/handlers/soap/SOAPSer > > vice.java,v > > retrieving revision 1.120 > > diff -r1.120 SOAPService.java > > 447,448c447,448 > > < > > handlerImpl.handleFault(msgContext); > > < msgContext.setPastPivot(true); > > --- > > > msgContext.setPastPivot(true); > > > > > handlerImpl.handleFault(msgContext); > > ================================ > > > > Basically the two lines of code need to be flipped. > > > > The modified SOAPService.java is attached. > > > > > > > > > > > > > --------------------------------------------------------------------- > > JIRA INFORMATION: > > This message is automatically generated by JIRA. > > > > If you think it was sent incorrectly contact one of > > the administrators: > > > > > http://issues.apache.org/jira/secure/Administrators.jspa > > > > If you want more information on JIRA, or have a bug > > to report see: > > http://www.atlassian.com/software/jira > > > > > > -- Davanum Srinivas - http://webservices.apache.org/~dims/