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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.1, 2.7.16, 3.0.5
    • Component/s: JAX-WS Runtime
    • Labels:
      None
    • Environment:

      jdk.1.7.0_45

    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: