[ http://issues.apache.org/jira/browse/AXIS2-359?page=comments#action_12361864 ]
Davanum Srinivas commented on AXIS2-359: ---------------------------------------- Our import stuff is in a deep mess!!! for starters, running w2j against the interop wsdl's fails miserably. http://soapinterop.java.sun.com/round3/groupd/import1?WSDL http://soapinterop.java.sun.com/round3/groupd/import2?WSDL http://soapinterop.java.sun.com/round3/groupd/import3?WSDL As does the following wsdl's in Axis1 test harness: /test/wsdl/_import/Import.wsdl /test/wsdl/_import/ImportMessagesXSDImport.wsdl /test/wsdl/import2/service1/service2/testimport.wsdl /test/wsdl/interop3/import1.wsdl /test/wsdl/interop3/import2.wsdl /test/wsdl/interop3/import3.wsdl /test/wsdl/import3/MultiImpIncl/wsdl/MultiImp.wsdl Am afraid to sound like a broken record, We REALLY need to learn from Axis1 experience and leverage as much from it as possible. Axis 1.X's w2j handles all these cases gracefully. thanks, dims > Stack overflow when processing XSD with mutual recursion > -------------------------------------------------------- > > Key: AXIS2-359 > URL: http://issues.apache.org/jira/browse/AXIS2-359 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: wsdl > Versions: 0.9, 0.91, 0.92, 0.93 > Environment: Win2K, Java 1.4.2_08-b03, Axis2 0.91, Axis2 0.93 > Reporter: Kevin J. Winters > > The recursive method WSDLPump.pushSchemaElement(...) does not protect against > schemas with mutual recursion. A check of already processed namespaces could > be used to prevent the stack overflow in a manner similar to: > ... > /** begin mod **/ > private HashSet schemaCache = new HashSet(); > /** end mod **/ > > private void pushSchemaElement(Schema originalSchema,Stack stack){ > if (originalSchema==null){ > return; > } > > /** begin mod **/ > if ( schemaCache.contains(originalSchema.getDocumentBaseURI())) { > return; > } else { > schemaCache.add(originalSchema.getDocumentBaseURI()); > } > /** end mod **/ > stack.push(originalSchema); > ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
