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

Thomas Greve commented on CXF-4909:
-----------------------------------

The wadl file used was in fact invalid: requests and responses may have 
parameters, but the must not be "plain" style.  Plain style parameters are 
allowed for representations, only, and a surrounding representation was missing 
in the wadl file.  It would be nice if wadl2java would detect this error and 
issue a meaningful error message instead of just crashing.
                
> wadl2java: NPE in SourceGenerator when generating method with "plain" style 
> parameter
> -------------------------------------------------------------------------------------
>
>                 Key: CXF-4909
>                 URL: https://issues.apache.org/jira/browse/CXF-4909
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.3
>         Environment: JDK 1.7.0_17
>            Reporter: Thomas Greve
>            Priority: Minor
>
> When trying to generate client classes with wadl2java command line tool, i 
> encounter a NPE in 
> org.apache.cxf.tools.wadlto.jaxrs.SourceGenerator.writeAnnotation(SourceGenerator.java:608)
> The "cls" parameter is null, what is not checked for.
> This is due to PARAM_ANNOTATIONS not containing the "plain" style, which is 
> valid according to w3c wadl description (2.12.2).

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

Reply via email to