Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 36694 invoked from network); 19 Jan 2010 16:49:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jan 2010 16:49:19 -0000 Received: (qmail 25671 invoked by uid 500); 19 Jan 2010 16:49:18 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 25513 invoked by uid 500); 19 Jan 2010 16:49:17 -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 25484 invoked by uid 99); 19 Jan 2010 16:49:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 16:49:17 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 16:49:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 72302234C1F1 for ; Tue, 19 Jan 2010 08:48:54 -0800 (PST) Message-ID: <536041401.341281263919734466.JavaMail.jira@brutus.apache.org> Date: Tue, 19 Jan 2010 16:48:54 +0000 (UTC) From: "Rich Scheuerle (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-4606) JAX-WS: Secondary error occurs while processing AsncResponse In-Reply-To: <447713628.321591263854934537.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rich Scheuerle resolved AXIS2-4606. ----------------------------------- Resolution: Fixed > JAX-WS: Secondary error occurs while processing AsncResponse > ------------------------------------------------------------ > > Key: AXIS2-4606 > URL: https://issues.apache.org/jira/browse/AXIS2-4606 > Project: Axis2 > Issue Type: Bug > Components: jaxws > Reporter: Rich Scheuerle > Assignee: Rich Scheuerle > Original Estimate: 72h > Remaining Estimate: 72h > > While processing a JAX-WS aysnchronous response, a NullPointerException may occur in the onError method of the jaxws AsyncResponse object. > This is an exception that occurs while processing an exception and leads to instability in the system. > For example it may lead to a hung system if the caller does not adequately account for such secondary errors. > protected void onError(Throwable flt, MessageContext faultCtx) { > if (log.isDebugEnabled()) { > log.debug("AsyncResponse received a fault."); > } > fault = flt; > faultMessageContext = faultCtx; > faultMessageContext.setEndpointDescription(endpointDescription); <--------------------NPE occurs here. > Proposed Solution: > The code will be changed to check for a null faultMessageContext before using it. A null faultMessageContext is an indication that the onError is processing a local exception (versus an error from an Endpoint's SOAP Fault). > The onError method will also be hardened to catch other other errors and respond gracefully. Throwing secondary exceptions from onError leads to system instability. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.