Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 96025 invoked from network); 12 Jan 2008 12:52:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2008 12:52:59 -0000 Received: (qmail 52270 invoked by uid 500); 12 Jan 2008 12:52:47 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 52222 invoked by uid 500); 12 Jan 2008 12:52:47 -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 52210 invoked by uid 99); 12 Jan 2008 12:52:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jan 2008 04:52:46 -0800 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; Sat, 12 Jan 2008 12:52:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DB7B7714201 for ; Sat, 12 Jan 2008 04:52:33 -0800 (PST) Message-ID: <4595841.1200142353886.JavaMail.jira@brutus> Date: Sat, 12 Jan 2008 04:52:33 -0800 (PST) From: "Michele Mazzucco (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-3441) Options.getProperty() causes StackOverflowError if the property is not defined In-Reply-To: <6185424.1200091354199.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-3441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558226#action_12558226 ] Michele Mazzucco commented on AXIS2-3441: ----------------------------------------- As I said the problem arises only if the property is not set (or if it's set to null). > Options.getProperty() causes StackOverflowError if the property is not defined > ------------------------------------------------------------------------------ > > Key: AXIS2-3441 > URL: https://issues.apache.org/jira/browse/AXIS2-3441 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: kernel > Affects Versions: 1.3 > Environment: axis2 1.3, java 1.5 > Reporter: Michele Mazzucco > Priority: Blocker > > Options.getProperty() throws StackOverflowError if the key doesn't map to any value (or points to null). The same applies to almost all get methods (i.e. getReplyTo). > The problem is that if the returned value is null the value is searched on the parent -- which is of the same type, and it never stops. > java.lang.StackOverflowError > at java.util.HashMap.get(HashMap.java:343) > at org.apache.axis2.client.Options.getProperty(Options.java:346) > at org.apache.axis2.client.Options.getProperty(Options.java:349) > at org.apache.axis2.client.Options.getProperty(Options.java:349) > at org.apache.axis2.client.Options.getProperty(Options.java:349) > at org.apache.axis2.client.Options.getProperty(Options.java:349) > .... and so on -- 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