cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1603) Can not generate subs or dynamic client for a web service with no Body Parts (NullPointerException)
Date Mon, 26 May 2008 00:47:55 GMT

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

Benson Margulies commented on CXF-1603:
---------------------------------------

What a pity that it has that obnoxious IP notice on the top and thus we can't check it in
at Apache.

> Can not generate subs or dynamic client for a web service with no Body Parts (NullPointerException)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1603
>                 URL: https://issues.apache.org/jira/browse/CXF-1603
>             Project: CXF
>          Issue Type: Bug
>          Components: Soap Binding
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.1
>            Reporter: Benjamin Coiffe
>            Assignee: Daniel Kulp
>             Fix For: 2.1.1, 2.0.7
>
>         Attachments: SOConverter.xml
>
>
> Stacktrace is:
> at org.apache.cxf.binding.soap.SoapBindingFactory.initializeMessage(SoapBindingFactory.java:576)
> 	at org.apache.cxf.binding.soap.SoapBindingFactory.initializeBindingOperation(SoapBindingFactory.java:500)
> 	at org.apache.cxf.binding.soap.SoapBindingFactory.createBindingInfo(SoapBindingFactory.java:475)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildBinding(WSDLServiceBuilder.java:364)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:253)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:147)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:136)
> 	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:94)
> 	at org.apache.cxf.endpoint.ClientImpl.<init>(ClientImpl.java:109)
> Code is:
> if (sb.getParts().size() == 1) {
>       partName = (String) sb.getParts().get(0);
> }
> and certainly should be:
>  if (sb.getParts() != null  && sb.getParts().size() == 1) {
>               partName = (String) sb.getParts().get(0);
>  }

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


Mime
View raw message