[jbossws-issues] [JBoss JIRA] Updated: (JBWS-1259) WSDL To Java - StackOverflowError with self referencing element.

Darran Lofthouse (JIRA) jira-events at jboss.com
Wed Jan 10 12:04:28 EST 2007


     [ http://jira.jboss.com/jira/browse/JBWS-1259?page=all ]

Darran Lofthouse updated JBWS-1259:
-----------------------------------

        Summary: WSDL To Java - StackOverflowError with self referencing element.  (was: stack-overflow when creating client for amazon webservices)
    Description: 
The following element definition causes a StackOverflowError when using wsdl to java: -

   <element name='lookup'>
    <complexType>
     <sequence>
      <element name='firstName' nillable='true' type='string'/>
      <element name='surname' nillable='true' type='string'/>
      <element name='parent' minOccurs='0'>
       <complexType>
        <sequence>
          <element maxOccurs='unbounded' ref='tns:lookup'/>
        </sequence>
       </complexType>
      </element>       
     </sequence>
   </complexType> 


Exception in thread "main" java.lang.StackOverflowError
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.getPrefix(WSSchemaUtils.java:757)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:331)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.appendComplexTypeDefinition(WSSchemaUtils.java:646)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:535)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:368)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.appendComplexTypeDefinition(WSSchemaUtils.java:646)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:535)
        etc..




  was:
When trying to create client artifacts with wstools for http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl, the following recursion error occurs:

Exception in thread "main" java.lang.StackOverflowError
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.getPrefix(WSSchemaUtils.java:757)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:331)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.appendComplexTypeDefinition(WSSchemaUtils.java:646)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:535)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:368)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.appendComplexTypeDefinition(WSSchemaUtils.java:646)
	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:535)
        etc..

my java-wsdl config is


<configuration xmlns="http://www.jboss.org/jbossws-tools">
  <global>
    <package-namespace namespace="http://webservices.amazon.com/AWSECommerceService/2006-09-18" package="amazon"/>
  </global>
  <wsdl-java file="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl" unwrap="false">
    <mapping file="Amazon-mapping.xml"/>
  </wsdl-java>
</configuration>





> WSDL To Java - StackOverflowError with self referencing element.
> ----------------------------------------------------------------
>
>                 Key: JBWS-1259
>                 URL: http://jira.jboss.com/jira/browse/JBWS-1259
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: wstools
>    Affects Versions: jbossws-1.0.3
>            Reporter: Ole Matzura
>         Assigned To: Darran Lofthouse
>             Fix For: jbossws-1.2.0
>
>
> The following element definition causes a StackOverflowError when using wsdl to java: -
>    <element name='lookup'>
>     <complexType>
>      <sequence>
>       <element name='firstName' nillable='true' type='string'/>
>       <element name='surname' nillable='true' type='string'/>
>       <element name='parent' minOccurs='0'>
>        <complexType>
>         <sequence>
>           <element maxOccurs='unbounded' ref='tns:lookup'/>
>         </sequence>
>        </complexType>
>       </element>       
>      </sequence>
>    </complexType> 
> Exception in thread "main" java.lang.StackOverflowError
> 	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.getPrefix(WSSchemaUtils.java:757)
> 	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:331)
> 	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.appendComplexTypeDefinition(WSSchemaUtils.java:646)
> 	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:535)
> 	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:368)
> 	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.appendComplexTypeDefinition(WSSchemaUtils.java:646)
> 	at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:535)
>         etc..

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list