Mark Anderson created CXF-5185:
----------------------------------

             Summary: Memory leak if no addresses are specified for 
SequentialStrategy
                 Key: CXF-5185
                 URL: https://issues.apache.org/jira/browse/CXF-5185
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.6.2
            Reporter: Mark Anderson


If an empty list of alternateAddresses is specified in SequentialStrategy this 
causes a NullPointerException in FailoverTargetSelector.

As the exception is thrown the key is never removed from the inProgress map 
resulting in a memory leak.

The stack trace for the exception is below:

java.lang.NullPointerException
     [java]     at 
org.apache.cxf.clustering.FailoverTargetSelector$InvocationContext.retrieveOriginalEndpoint(FailoverTargetSelector.java:397)
     [java]     at 
org.apache.cxf.clustering.FailoverTargetSelector.complete(FailoverTargetSelector.java:162)
     [java]     at 
org.apache.cxf.endpoint.ClientImpl.processResult(ClientImpl.java:592)
     [java]     at 
org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:540)
     [java]     at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
     [java]     at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
     [java]     at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
     [java]     at 
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
     [java]     at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to