cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5185) Memory leak if no addresses are specified for SequentialStrategy
Date Wed, 14 Aug 2013 19:52:48 GMT

    [ https://issues.apache.org/jira/browse/CXF-5185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13740105#comment-13740105
] 

Sergey Beryozkin commented on CXF-5185:
---------------------------------------

I can't reproduce it with a simple failover test, where a sequential strategy has no addresses,
in my case the endpoint in InvocationContext.retrieveOriginalEndpoint(FailoverTargetSelector.java:397)
is not null. Perhaps you can create a test case ?
In meantime I've added NPE guard,
                
> 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

Mime
View raw message