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 "Mohsin Ali (JIRA)" <ji...@apache.org> on 2013/01/02 08:06:12 UTC
[jira] [Commented] (AXIS2-5243) DefaultSchemaGenerator only process
fields of a POJO
[ 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