Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5800

Memory leak in soap service client when remote service url is invalid.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.6.3
    • None
    • kernel

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jcnaidu05@gmail.com Jayachandra naidu K
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 4m
                4m
                Remaining:
                Remaining Estimate - 4m
                4m
                Logged:
                Time Spent - Not Specified
                Not Specified