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

Creating and Endpoint using JAX-WS API, getting the binding and then publishing causes a NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.3
    • 3.1, 2.7.16, 3.0.5
    • JAX-WS Runtime
    • None
    • jdk.1.7.0_45

    • Unknown

    Description

      The following code will trigger a NullPointerException


      Endpoint endpoint = Endpoint.create(new Calculator());

      Binding binding = endpoint.getBinding();

      endpoint.publish("http://localhost:9494/calculator");

      This same code using JDK's JAX-WS implementation works without problems.

      Requesting the binding at that point, maybe to register handlers, causes a call to getServer(null) which ends up setting a null address:

      Info: Setting the server's publish address to be null

      Attachments

        1. cxf6257.zip
          5 kB
          Carlos Sierra Andrés

        Activity

          People

            ay Akitoshi Yoshida
            csierra Carlos Sierra Andrés
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: