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

NPE while trying to create a dispatch for SOAP service without port address specified in WSDL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.3
    • 2.6.12, 2.7.9
    • JAX-WS Runtime
    • None
    • Unknown

    Description

      I am trying to create a dispatch from WSDL-based service, specifying port name, jaxbContext and Mode = Payload.
      I am getting NullPointerException:

      Caused by: java.lang.NullPointerException
      	at org.apache.cxf.jaxws.ServiceImpl.getJaxwsEndpoint(ServiceImpl.java:254)
      	at org.apache.cxf.jaxws.ServiceImpl.createDispatch(ServiceImpl.java:625)
      	at org.apache.cxf.jaxws.ServiceImpl.createDispatch(ServiceImpl.java:694)
      	at org.apache.cxf.jaxws.ServiceImpl.createDispatch(ServiceImpl.java:686)
      	at javax.xml.ws.Service.createDispatch(Service.java:488)
      

      because of this line

              if (portInfo != null && !portInfo.getAddress().equals(ei.getAddress())) {
      

      postInfo is not null, but it's address is null in my case. I am going to set javax.xml.ws.service.endpoint.address request property to use the dispatch created.

      P.S. I've checked on trunk, it has same code

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            tivv Vitalii Tymchyshyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: