You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/10/12 02:06:40 UTC

DO NOT REPLY [Bug 13562] New: - WSDL2Java -n with xsd:include causes stack overflow

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13562>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13562

WSDL2Java -n with xsd:include causes stack overflow

           Summary: WSDL2Java -n with xsd:include causes stack overflow
           Product: Axis
           Version: 1.0-rc2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: jhrabows@brooks.com


(I listed it as rc2 bug because there is no choice for the actual 1.0 release)
I run WSDL2Java -n ALM1.wsd which contains only 1 bean-like complex type 
extending another bean-like type. The latter is defined in DTPF.xsd and is 
included via xsd:include statement in ALM1.wsd. This works when -n is not used. 
Works also if rather that xsd:include I paste the file. When -n and xsd:include 
are used I get stack overflow. (The xml files are pasted below the stack)
================== java.lang.StackOverflowError========
     [java]     at org.apache.crimson.tree.AttributeSet.item
(AttributeSet.java:334)
     [java]     at org.apache.crimson.tree.AttributeSet.getNamedItem
(AttributeSet.java:292)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute
(Utils.java:123)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute
(Utils.java:128)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute
(Utils.java:128)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute
(Utils.java:128)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute
(Utils.java:128)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute
(Utils.java:128)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute
(Utils.java:128)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute
(Utils.java:128)
     [java]     at 
org.apache.axis.wsdl.symbolTable.Utils.getQNameFromPrefixedName(Utils.java:413)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getTypeQNameFromAttr
(Utils.java:390)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getTypeQName
(Utils.java:281)
     [java]     at 
org.apache.axis.wsdl.symbolTable.SchemaUtils.processChildElementNode
(SchemaUtils.java:344)
     [java]     at 
org.apache.axis.wsdl.symbolTable.SchemaUtils.processSequenceNode
(SchemaUtils.java:269)
     [java]     at 
org.apache.axis.wsdl.symbolTable.SchemaUtils.getContainedElementDeclarations
(SchemaUtils.java:182)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getNestedTypes
(Utils.java:510)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getNestedTypes
(Utils.java:498)
     [java]     at org.apache.axis.wsdl.symbolTable.Utils.getNestedTypes
(Utils.java:473)
     [java]     at 
org.apache.axis.wsdl.symbolTable.SymbolTable.setTypeReferences
(SymbolTable.java:1785)
     [java]     at 
org.apache.axis.wsdl.symbolTable.SymbolTable.setTypeReferences
(SymbolTable.java:1791)
     [java]     at 
org.apache.axis.wsdl.symbolTable.SymbolTable.setTypeReferences
(SymbolTable.java:1791)
.... last entry is repeated until overflow)
====================ALM1.wsd========================
<?xml version="1.0" encoding="UTF-8"?>
<w:definitions targetNamespace="http://www.brooks.com/wsdl/ALM" 
xmlns:axis="http://xml.apache.org/xml-soap" 
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:tx="http://www.brooks.com/schema/dtpf" 
xmlns:txw="http://www.brooks.com/wsdl/ALM" 
xmlns:w="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<w:types>
<xsd:schema targetNamespace="http://www.brooks.com/schema/dtpf">


<xsd:include schemaLocation="DTPF.xsd"/>


<xsd:complexType name="FwFetchAlarmInstTxn">
<xsd:complexContent>
<xsd:extension base="tx:FwTransaction">
<xsd:sequence>
<xsd:element name="maxContext" type="xsd:int"/>
<xsd:element name="maxHistory" type="xsd:int"/>
<xsd:element name="whereClause" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>


</xsd:schema>
</w:types>
</w:definitions>


====================DTPF.xsd=========================

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.brooks.com/schema/dtpf" 
xmlns:axis="http://xml.apache.org/xml-soap" 
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tx="http://www.brooks.com/schema/dtpf" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="FwTransaction">
<xsd:sequence>
<xsd:element name="subjectName" type="xsd:string"/>
<xsd:element name="msgTag" type="xsd:string"/>
<xsd:element name="sendAck" type="xsd:boolean"/>
<xsd:element name="systemLevelObjects" type="enc:Array"/>
<xsd:element name="allReferences" type="enc:Array"/>
<xsd:element name="dirtySubObjects" type="enc:Array"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>