You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Akitoshi Yoshida (JIRA)" <ji...@apache.org> on 2015/03/26 16:37:53 UTC

[jira] [Resolved] (CXF-6257) Creating and Endpoint using JAX-WS API, getting the binding and then publishing causes a NullPointerException

     [ https://issues.apache.org/jira/browse/CXF-6257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Akitoshi Yoshida resolved CXF-6257.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.5
                   2.7.16
                   3.1.0

> Creating and Endpoint using JAX-WS API, getting the binding and then publishing causes a NullPointerException
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-6257
>                 URL: https://issues.apache.org/jira/browse/CXF-6257
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 3.0.3
>         Environment: jdk.1.7.0_45
>            Reporter: Carlos Sierra
>            Assignee: Akitoshi Yoshida
>             Fix For: 3.1.0, 2.7.16, 3.0.5
>
>         Attachments: cxf6257.zip
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)