Description
Version: Axis2 1.6.3 kernel.
Scenario:
Configure only IP address in remote service url and send SOAP message using soap service client.
Example: 127.0.0.1
In the above scenario instance in this map are increasing. org.apache.axis2.context.ConfigurationContext.operationContextMap
Rootcause:
As configured url is invalid, Below api throws AxisFault exception.
org.apache.axis2.description.ClientUtils.inferOutTransport(AxisConfiguration, EndpointReference, MessageContext)
org.apache.axis2.client.OperationClient.prepareMessageContext(ConfigurationContext, MessageContext)
In prepareMessageContext api AxisFault exception not handled and it is directly throwing to user application.
Fix:
Catch the AxisFault exception in org.apache.axis2.description.OutInAxisOperationClient.executeImpl(boolean) and call org.apache.axis2.context.ConfigurationContext.unregisterOperationContext(String) api with message id.