cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Liu (JIRA)" <>
Subject [jira] [Created] (CXF-3585) WSDLGetInterceptor throws NullPointException when using EndpointSelectionInterceptor
Date Mon, 13 Jun 2011 11:13:51 GMT
WSDLGetInterceptor throws NullPointException when using EndpointSelectionInterceptor

                 Key: CXF-3585
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.4
            Reporter: David Liu

  It looks like WSDLGetInterceptor assumes that the current exchange has one Endpoint, however,
there is the case we can use EndpointSelectionInterceptor to get the Endpoint later, so the
Endpoint could be null and which causes NullPointException .

e.g. WSDLGetInterceptor expects one Endpoint,
class WSDLGetInterceptor {
        //cannot have two wsdl's being written for the same endpoint at the same
        //time as the addresses may get mixed up
        synchronized (message.getExchange().getEndpoint()) {  <-- NullPointException 

However, the Endpoint is null at this moment and it will be set in EndpointSelectionInterceptor
    public void handleMessage(Message message) throws Fault {
        Exchange ex = message.getExchange();
        Set<Endpoint> endpoints = CastUtils.cast((Set)ex.get(MultipleEndpointObserver.ENDPOINTS));

        Endpoint ep = selectEndpoint(message, endpoints);

        if (ep == null) {

        ex.put(Endpoint.class, ep);


This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message