Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1259

WSDL To Java - StackOverflowError with self referencing element.

    Details

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dlofthouse Darran Lofthouse
                  Reporter:
                  omatzura Ole Matzura (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: