You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Detelin Yordanov (JIRA)" <ji...@apache.org> on 2009/07/23 17:21:14 UTC

[jira] Commented: (AXIS2-4444) NPE in DefaultSchemaGenerator when generating a wrapped array schema for a complex type

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

Detelin Yordanov commented on AXIS2-4444:
-----------------------------------------

The reason for the problem seems to be that the schema generator searches the type table for a simple type, when handling a complex type.

> NPE in DefaultSchemaGenerator when generating a wrapped array schema for a complex type
> ---------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4444
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4444
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Sub-task
>          Components: kernel
>    Affects Versions: 1.5
>            Reporter: Detelin Yordanov
>         Attachments: stacktrace.txt, WrappedArrayService.aar
>
>
> When generating the schema for a class' complex field, with the wrapped array support turned on, a NPE gets thrown:
> java.lang.NullPointerException
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaforFieldsandProperties(DefaultSchemaGenerator.java:703)
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:555)
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaForType(DefaultSchemaGenerator.java:862)
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.processMethods(DefaultSchemaGenerator.java:334)
>         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:252)
>         at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:514)
>         at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:386)

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