You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Mark Anderson (JIRA)" <ji...@apache.org> on 2013/08/07 11:28:47 UTC

[jira] [Created] (CXF-5185) Memory leak if no addresses are specified for SequentialStrategy

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