You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Michal Láska (Updated JIRA)" <ji...@apache.org> on 2012/02/08 14:05:59 UTC

[jira] [Updated] (WSCOMMONS-578) StackOverflowError occurs when call XmlSchema.getAllSchemas() of WSDL file which contains recurrence import of XSD files

     [ https://issues.apache.org/jira/browse/WSCOMMONS-578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michal Láska updated WSCOMMONS-578:
-----------------------------------

    Attachment: RecurrenceImportBug.zip
    
> 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org