[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:08:28 EST 2007


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

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

    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 maxOccurs='unbounded' ref='tns:lookup'/>  
     </sequence>
    </complexType>     
   </element>


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:
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..





> 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 maxOccurs='unbounded' ref='tns:lookup'/>  
>      </sequence>
>     </complexType>     
>    </element>
> 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