1 Reply Latest reply on May 3, 2018 5:07 AM by tuijldert

    NPE in a cxf client because address == null, why?

    tuijldert

      Hi,

       

      On deploying a JbossWS client on wildfly (10.1.0.Final) using the cxf client (5.1.5.Final ), I consistently get a NullPointerException on calling a WS method as in:

      Interceptor for {xxx} has thrown exception, unwinding now: java.lang.NullPointerException

              at org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit.setupConnection(AsyncHTTPConduit.java:138)

       

      Turns out the address parameter in setupConnection is indeed null.

       

      What am I doing wrong wrt. this call?

      How can I fill the address with something sensible?

       

      TIA,

      Tom.

        • 1. Re: NPE in a cxf client because address == null, why?
          tuijldert

          Because, on creating the implementing client as in:

           

          service = new TheUserService(wsdl, qName);

           

          the specified wsdl could not be found due to a typo in the url, but this is not logged (?) and therefore escaped my attention.

           

          Ah well, we live and learn.

          Apologies for the spam.

           

          Cheers,

          Tom.