axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4312) java2wsdl fails when using the GenerateWrappedArrayTypes pramater
Date Mon, 03 Jan 2011 10:38:45 GMT

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

Amila Chinthaka Suriarachchi resolved AXIS2-4312.
-------------------------------------------------

    Resolution: Incomplete

resolve the issue since you have not given the class to reproduce the issue. 

Please reopen the issue if you have the class to reproduce this issue and still you get the
issue with the nightly builds.

> java2wsdl fails when using the GenerateWrappedArrayTypes pramater
> -----------------------------------------------------------------
>
>                 Key: AXIS2-4312
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4312
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4.1
>            Reporter: alex wu
>            Priority: Critical
>         Attachments: DefaultSchemaGenerator.patch
>
>
> http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
> from line 700 ~ line 715 
> line 700:        } else {
>             if (isArrayType) {
>                 generateSchema(type.getComponentType());
>             } else {
>                 generateSchema(type);
>             }
>             if (isGenerateWrappedArrayTypes && isArrayType) {
>                 XmlSchemaElement xmlSchemaElement = new XmlSchemaElement();
>                 xmlSchemaElement.setName(name + "Wrapper");
>                 xmlSchemaElement.setNillable(true);
>                 sequence.getItems().add(xmlSchemaElement);
> line 715:                String complexTypeName =
>                        typeTable.getSimpleSchemaTypeName(propertyName).getLocalPart()
+ "Wrapper";
> notice line 715 will cause a NPE,  in this case complexTypeName should not get from the
SimpleTypes in typeType, instead, should come form the complexTypes. 
>  String complexTypeName =
>                         typeTable.getComplexSchemaType(propertyName).getLocalPart() +
"Wrapper";

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message