You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/05/26 02:47:55 UTC
[jira] Commented: (CXF-1603) Can not generate subs or dynamic
client for a web service with no Body Parts (NullPointerException)
[ 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.