Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 8032 invoked from network); 1 Aug 2005 13:48:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2005 13:48:57 -0000 Received: (qmail 38933 invoked by uid 500); 1 Aug 2005 13:48:54 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 38022 invoked by uid 500); 1 Aug 2005 13:48:51 -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 38008 invoked by uid 99); 1 Aug 2005 13:48:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2005 06:48:39 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id A13E1E4 for ; Mon, 1 Aug 2005 15:48:36 +0200 (CEST) Message-ID: <1459783573.1122904116659.JavaMail.jira@ajax.apache.org> Date: Mon, 1 Aug 2005 15:48:36 +0200 (CEST) From: "Thomas Mayr (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-2153) Method org.apache.axis.message.MessageElement.getValue() always returns null in a SAP WAS environment Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-2153?page=comments#action_12317330 ] Thomas Mayr commented on AXIS-2153: ----------------------------------- Hi dims, thanks this looks ok! Best regards Thomas > Method org.apache.axis.message.MessageElement.getValue() always returns null in a SAP WAS environment > ----------------------------------------------------------------------------------------------------- > > Key: AXIS-2153 > URL: http://issues.apache.org/jira/browse/AXIS-2153 > Project: Apache Axis > Type: Bug > Versions: 1.2.1 > Environment: SAP WAS 6.40 Application Server on Windows 2000 SP4 > Reporter: Thomas Mayr > Priority: Critical > > I don't know exactly why, but the method org.apache.axis.message.MessageElement.getValue() always returns null, although the message array of the iterator contains the right element of type Text with the right value. After I patched the last for loop in the following way it works: > for (Iterator i = getChildElements(); i.hasNext(); ) { > org.apache.axis.message.NodeImpl n = (org.apache.axis.message.NodeImpl) i.next(); > if (n instanceof org.apache.axis.message.Text) > { > org.apache.axis.message.Text textNode = (org.apache.axis.message.Text) n; > return textNode.getNodeValue(); > } > } > As you can see I casted the element returned by the method i.next() with the full qualified class path and call the method getNodeValue() also with an object casted with the full qualified class path (org.apache.axis.message.Text). After this patch the correct method Text.getNodeValue() is called. Previousely this method wasn't called and I could not step in this method with the eclipse debugger! As I said, I don't understand what's exactly going on but I''ll leave this analysys to the developer ;-) > Best regards Thomas Mayr -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira