axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shameera Rathnayaka (Created) (JIRA)" <>
Subject [jira] [Created] (AXIS2-5169) WSDL2Java tool fail when wsdl has a ref element has an anonymous complextype
Date Fri, 21 Oct 2011 15:16:32 GMT
WSDL2Java tool fail when wsdl has a ref element has an anonymous complextype 

                 Key: AXIS2-5169
             Project: Axis2
          Issue Type: Improvement
          Components: adb, codegen, Tools
    Affects Versions: 1.7.0
            Reporter: Shameera Rathnayaka
            Assignee: Shameera Rathnayaka

If i run wsdl2java with a wsdl which has a ref element with an anonymous complextype then
it gives following error

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
	at org.apache.axis2.wsdl.WSDL2Code.main(

This is because, following code segment in SchemaCompiler class add null value as the javaClassName
when ref element has an anonymous complextype

                if (xmlSchemaType != null) {
                    if (!this.processedElementRefMap.containsKey(referencedElement.getQName()))
                        // we know this is a named complex type
                        processSchema(referencedElement, xmlSchemaType, newResolvedSchema,
                        // if this is an anonomous complex type we have to set this


                    String javaClassName = this.processedTypemap.get(referencedElement.getSchemaTypeName());
                } else {
                    throw new SchemaCompilationException(" Can not find the schema type with
name " + schemaTypeName);

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message