Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 45304 invoked from network); 12 Feb 2009 05:03:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 05:03:58 -0000 Received: (qmail 50975 invoked by uid 500); 12 Feb 2009 05:03:50 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 50943 invoked by uid 500); 12 Feb 2009 05:03:50 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 50934 invoked by uid 99); 12 Feb 2009 05:03:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 21:03:49 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.161.158.12] (HELO smtp.selectica.com) (64.161.158.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 05:03:41 +0000 Received: from sltcmsx.selectica.net ([10.0.12.245]) by smtp.selectica.com (8.12.8/8.12.8) with ESMTP id n1C53JUK010257 for ; Wed, 11 Feb 2009 21:03:19 -0800 Received: from sltcmsx.selectica.net ([10.0.12.245]) by sltcmsx.selectica.net ([10.0.12.245]) with mapi; Wed, 11 Feb 2009 21:03:19 -0800 From: "Pantvaidya, Vishwajit" To: "axis-user@ws.apache.org" Date: Wed, 11 Feb 2009 21:03:18 -0800 Subject: [Axis2] Stack overflow error in wsdl2java for wsdl that imports several xsds Thread-Topic: [Axis2] Stack overflow error in wsdl2java for wsdl that imports several xsds Thread-Index: AcmMzzgG/nuLYvVWSZin/qaoeTXKqA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_A8CDAF70C43E5C47BAF859D660CEAD1005B0977BECsltcmsxselect_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_A8CDAF70C43E5C47BAF859D660CEAD1005B0977BECsltcmsxselect_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using Axis 1.4.1 WSDL2Java to generate client side stubs for 2 wsdls. = Both of these, in their section, import 7-8 xsd schemas using xsd:i= mport. Code generation for one of the wsdls goes fine. The other one termin= ates with following error. Is this a bug? Any workaround? [java] Exception in thread "main" java.lang.StackOverflowError [java] at org.apache.ws.commons.schema.XmlSchema.equals(XmlSchem= a.java:547) [java] at java.util.Vector.indexOf(Vector.java:364) [java] at java.util.Vector.contains(Vector.java:322) [java] at org.apache.ws.commons.schema.XmlSchema.getElementByNam= e(XmlSchema.java:177) [java] at org.apache.ws.commons.schema.XmlSchema.getElementByNam= e(XmlSchema.java:199) [java] at org.apache.ws.commons.schema.XmlSchema.getElementByNam= e(XmlSchema.java:199) [java] at org.apache.ws.commons.schema.XmlSchema.getElementByNam= e(XmlSchema.java:199) [java] at org.apache.ws.commons.schema.XmlSchema.getElementByNam= e(XmlSchema.java:232) [java] at org.apache.axis2.description.AxisMessage.getSchemaElem= ent(AxisMessage.java:147) [java] at org.apache.axis2.description.AxisMessage.getSchemaElem= ent(AxisMessage.java:158) --_000_A8CDAF70C43E5C47BAF859D660CEAD1005B0977BECsltcmsxselect_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using Axis 1.4.1 WSDL2Java to generate client side stubs for 2 wsdls. Both of these, in their <types> section, import 7-= 8 xsd schemas using xsd:import. Code generation for one of the wsdls goes fin= e. The other one terminates with following error. Is this a bug? Any workaroun= d?

 

     [java] Exception in thread "main" java.lang.StackOverflowError

     [java]       at org.apache.ws.commons.schema.XmlSchema.equals(XmlSchema.java:547)

     [java]       at java.util.Vector.indexOf= (Vector.java:364)

     [java]       at java.util.Vector.contain= s(Vector.java:322)

     [java]       at org.apache.ws.commons.schema.XmlSchema.getElementByName(XmlSchema.java:177)

     [java]       at org.apache.ws.commons.schema.XmlSchema.getElementByName(XmlSchema.java:199)

     [java]       at org.apache.ws.commons.schema.XmlSchema.getElementByName(XmlSchema.java:199)

     [java]       at org.apache.ws.commons.schema.XmlSchema.getElementByName(XmlSchema.java:199)

     [java]       at org.apache.ws.commons.schema.XmlSchema.getElementByName(XmlSchema.java:232)

     [java]       at org.apache.axis2.description.AxisMessage.getSchemaElement(= AxisMessage.java:147)

=  &n= bsp;   [java= ]       a= t org.apache.axis2.description.AxisMessage.getSchemaElement(= AxisMessage.java:158)

--_000_A8CDAF70C43E5C47BAF859D660CEAD1005B0977BECsltcmsxselect_--