StackOverflowError occurs when call XmlSchema.getAllSchemas() of WSDL file 
which contains recurrence import of XSD files
------------------------------------------------------------------------------------------------------------------------

                 Key: WSCOMMONS-578
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-578
             Project: WS-Commons
          Issue Type: Bug
          Components: XmlSchema
    Affects Versions: XmlSchema 1.4.7
         Environment: Windows 7, Java 7
            Reporter: Michal Láska
         Attachments: RecurrenceImportBug.zip

I have WSDL file which imports XSD files and these XSD files import another XSD 
files etc.

If I have concrete situation like this one bellow
A.WSDL imports B.XSD
B.XSD imports C.XSD
C.XSD imports D.XSD
D.XSD imports B.XSD
then StackOverflowError occurs when I call xmlSchemaOfWsdlFile.getAllSchemas() 
because D.XSD imports B.XSD will cause recurrence import of
B.XSD imports C.XSD
C.XSD imports D.XSD
D.XSD imports B.XSD
etc.

I think there should be some check of already serialized schemaObj in 
XmlSchemaSerializer.serializeSchemaElement(XmlSchema schemaObj, boolean 
serializeIncluded).

See attached RecurrenceImportBug.zip file - it's an Eclipse Java Project with 
very simple situation:
A.WSDL imports B.XSD
B.XSD imports C.XSD
C.XSD imports B.XSD


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to