Return-Path: Delivered-To: apmail-ws-sandesha-dev-archive@www.apache.org Received: (qmail 85139 invoked from network); 28 Sep 2007 12:55:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 12:55:49 -0000 Received: (qmail 65811 invoked by uid 500); 28 Sep 2007 12:55:07 -0000 Delivered-To: apmail-ws-sandesha-dev-archive@ws.apache.org Received: (qmail 65691 invoked by uid 500); 28 Sep 2007 12:55:07 -0000 Mailing-List: contact sandesha-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list sandesha-dev@ws.apache.org Received: (qmail 65624 invoked by uid 99); 28 Sep 2007 12:55:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 05:55:06 -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, 28 Sep 2007 12:55:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2BF51410126 for ; Fri, 28 Sep 2007 05:54:03 -0700 (PDT) Message-ID: <1459901.1190984043178.JavaMail.jira@brutus> Date: Fri, 28 Sep 2007 05:54:03 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: sandesha-dev@ws.apache.org Subject: [jira] Updated: (SAND-11) RMMessageProcessorIdentifier throws NullPointerException when processing an empty SOAP envelope In-Reply-To: <13685923.1172827851014.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/SAND-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davanum Srinivas updated SAND-11: --------------------------------- Assignee: (was: Davanum Srinivas) > RMMessageProcessorIdentifier throws NullPointerException when processing an empty SOAP envelope > ----------------------------------------------------------------------------------------------- > > Key: SAND-11 > URL: https://issues.apache.org/jira/browse/SAND-11 > Project: Sandesha > Issue Type: Bug > Environment: Windows XP > Axis 1.4 > Sandesha 1.0 > Reporter: Akitoshi Yoshida > Attachments: changed.zip > > > This problem occurs, when the response message to the TerminateSequence is not HTTP202 but > HTTP200 with an empty SOAP envelope. In this case, RMMessageProcessorIdentifier tries to find the Sequence object and reading its value, because the sequence object is null, resulting in a NullPointerException. > It would be better to check the existance of this object to avoid a NPE. > The following change prevents a NPE to be thrown. > org.apache.sandesha.server.RMMessageProcessorIdentifier#getMessageProcessor > 53c53 > < rmHeaders.getSequence().getMessageNumber() != null) { > --- > > (rmHeaders.getSequence() != null && rmHeaders.getSequence().getMessageNumber() != null)) { > 58c58 > < rmHeaders.getSequence().getMessageNumber() != null) { > --- > > (rmHeaders.getSequence() != null && rmHeaders.getSequence().getMessageNumber() != null)) { -- 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: sandesha-dev-unsubscribe@ws.apache.org For additional commands, e-mail: sandesha-dev-help@ws.apache.org