Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1603

Can not generate subs or dynamic client for a web service with no Body Parts (NullPointerException)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.1
    • Fix Version/s: 2.1.1, 2.0.7
    • Component/s: Soap Binding
    • Labels:
      None

      Description

      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); }

        Attachments

        1. SOConverter.xml
          7 kB
          Benjamin Coiffe

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              benjamin coiffe Benjamin Coiffe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: