axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohsin Ali (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5243) DefaultSchemaGenerator only process fields of a POJO
Date Wed, 02 Jan 2013 07:06:12 GMT

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

Mohsin Ali commented on AXIS2-5243:
-----------------------------------

                        Type genericFieldType = property.getReadMethod().getGenericReturnType();

should be changed to:

                        Type genericFieldType = null;
                        try {
                            genericFieldType = property.getReadMethod().getGenericReturnType();
                        } catch (Exception e) {
                            //log.info(e.getMessage());
                        }

Because it is giving null pointer exception for the properties that do not have read method:

Caused by: java.lang.NullPointerException
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:606)

                
> DefaultSchemaGenerator only process fields of a POJO
> ----------------------------------------------------
>
>                 Key: AXIS2-5243
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5243
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1
>            Reporter: Sagara Gunathunga 
>            Assignee: Sagara Gunathunga 
>             Fix For: 1.6.2, 1.7.0
>
>
> DefaultSchemaGenerator only process fields of a POJO but there is a possibility to present
pair of accessor methods without a Field. In such cases DefaultSchemaGenerator generate invalid
schema.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
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