-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.3
-
Component/s: JAX-WS Runtime
-
Labels:None
-
Environment:
jdk.1.7.0_45
-
Estimated Complexity:Unknown
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