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] Commented: (AXIS2-4312) java2wsdl fails when using the GenerateWrappedArrayTypes pramater
Date Fri, 23 Apr 2010 09:23:54 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860192#action_12860192
] 

Amila Chinthaka Suriarachchi commented on AXIS2-4312:
-----------------------------------------------------

Can you please attach the class which you use to reproduce this issue?

> 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