Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 5623 invoked from network); 29 Jun 2007 19:12:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jun 2007 19:12:28 -0000 Received: (qmail 66743 invoked by uid 500); 29 Jun 2007 19:12:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 66265 invoked by uid 500); 29 Jun 2007 19:12:28 -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: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 66254 invoked by uid 99); 29 Jun 2007 19:12:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 12:12:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 12:12:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C693F71418F for ; Fri, 29 Jun 2007 12:12:04 -0700 (PDT) Message-ID: <25815001.1183144324810.JavaMail.jira@brutus> Date: Fri, 29 Jun 2007 12:12:04 -0700 (PDT) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-1754) Exceptions thrown by service methods are not propogated to clients properly. In-Reply-To: <4906986.1164057001932.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-1754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deepal Jayasinghe resolved AXIS2-1754. -------------------------------------- Resolution: Fixed I fixed this issue during the hackathon. Please chcek with the latest nighly builds. Thanks Deepal > Exceptions thrown by service methods are not propogated to clients properly. > ---------------------------------------------------------------------------- > > Key: AXIS2-1754 > URL: https://issues.apache.org/jira/browse/AXIS2-1754 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: rpc > Affects Versions: 1.1 > Environment: OS: Windows XP SP2, Eclipse 3.2 IDE, Java 5.0 Update 7 > Reporter: Aaron Gourley > Assignee: Deepal Jayasinghe > Priority: Blocker > Fix For: 1.3 > > Attachments: ReceiverUtils.java > > > This bug was introduced in revision 452427 (http://svn.apache.org/viewvc?view=rev&revision=452427) > In the invokeBusinessLogic() method, calls to "AxisFault.makeFault(e)" were changed to calls to "new AxisFault(msg, e)" in the catch blocks in the try/catch statements. This is particularly a problem in the handling of InvocationTargetExceptions, because the call was actually replaced with a call to "new AxisFault(msg) and exceptions thrown by service methods (which are wrapped by InvocationTargetExceptions at this point) are discarded. The old behaviour was to wrap the cause exception in an AxisFault and rethrow. Now the cause exception is only used for its message and a new AxisFault exception is created with the same message (and no reference to the exception thrown by the service method). > This results in a meaningless exception being thrown every time. > Example: > My service object throws an exception object (which is defined in my WSDL) containing some member fields: messageId and resultCode. I do not call setMessage() on this exception, so getMessage() returns null. After the RPCMessageReceivers process my exception, an AxisFault is thrown with message "Exception occurred while trying to invoke service method " + method.getName(). My original exception is thrown away and I lose my messageId and resultCode information. I get the following SOAP message from the server: > HTTP/1.1 500 Internal Server Error > Server: Apache-Coyote/1.1 > Set-Cookie: JSESSIONID=07DA197EBF0B871BF5F99B82A177EE01; Path=/TerminalLocationService > Content-Type: text/xml;charset=UTF-8 > Transfer-Encoding: chunked > Date: Mon, 20 Nov 2006 20:05:48 GMT > Connection: close > 169 > soapenv:ClientException occurred while trying to invoke service method getLocationForGroup > 0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org