Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 39993 invoked from network); 21 Apr 2006 17:39:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Apr 2006 17:39:14 -0000 Received: (qmail 82891 invoked by uid 500); 21 Apr 2006 17:39:11 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 82626 invoked by uid 500); 21 Apr 2006 17:39:10 -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 82615 invoked by uid 99); 21 Apr 2006 17:39:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2006 10:39:10 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2006 10:39:10 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D9AA7142E2 for ; Fri, 21 Apr 2006 17:38:06 +0000 (GMT) Message-ID: <10880459.1145641086446.JavaMail.jira@brutus> Date: Fri, 21 Apr 2006 17:38:06 +0000 (GMT+00:00) From: "Ajith Harshana Ranabahu (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-359) Stack overflow when processing XSD with mutual recursion In-Reply-To: <1618555698.1136471160547.JavaMail.jira@ajax.apache.org> 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/AXIS2-359?page=all ] Ajith Harshana Ranabahu resolved AXIS2-359: ------------------------------------------- Resolution: Fixed Solved. The culprit was the recursive checker for Base64 types. The pushing of namespaces have been fixed also > Stack overflow when processing XSD with mutual recursion > -------------------------------------------------------- > > Key: AXIS2-359 > URL: http://issues.apache.org/jira/browse/AXIS2-359 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: wsdl > Versions: 0.92, 0.91, 0.9, 0.93 > Environment: Win2K, Java 1.4.2_08-b03, Axis2 0.91, Axis2 0.93 > Reporter: Kevin J. Winters > Assignee: Ajith Harshana Ranabahu > > The recursive method WSDLPump.pushSchemaElement(...) does not protect against schemas with mutual recursion. A check of already processed namespaces could be used to prevent the stack overflow in a manner similar to: > ... > /** begin mod **/ > private HashSet schemaCache = new HashSet(); > /** end mod **/ > > private void pushSchemaElement(Schema originalSchema,Stack stack){ > if (originalSchema==null){ > return; > } > > /** begin mod **/ > if ( schemaCache.contains(originalSchema.getDocumentBaseURI())) { > return; > } else { > schemaCache.add(originalSchema.getDocumentBaseURI()); > } > /** end mod **/ > stack.push(originalSchema); > ... -- 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