axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayachandra naidu K (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5800) Memory leak in soap service client when remote service url is invalid.
Date Thu, 11 Aug 2016 07:07:20 GMT

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

Jayachandra naidu K commented on AXIS2-5800:
--------------------------------------------

Added functional testcase and logs

   public static void main(java.lang.String args[])
    {
        try
        {
            // targetEndpoint end point is valid url, It is working fine.
            Axis2UserGuideServiceStub validUrlStub = new Axis2UserGuideServiceStub(
                    "http://localhost:8080/axis2/services/multipleParameter");

            Axis2UserGuideServiceStub invalidUrlStub = new Axis2UserGuideServiceStub(
                    "127.0.0.1");
            // doInOnly(stub);
            // twoWayOneParameterEcho(stub);
            // noParameters(stub);
            multipleParameters(invalidUrlStub);

        }
        catch (Exception e)
        {
            e.printStackTrace();
            System.out.println("\n\n\n");
        }
    }

Exception msg:

org.apache.axis2.AxisFault: The system cannot infer the transport information from the 127.0.0.1
URL.
	at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81)
	at org.apache.axis2.client.OperationClient.prepareMessageContext(OperationClient.java:289)
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:176)
	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
	at org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub.multipleParametersAddItem(Axis2UserGuideServiceStub.java:475)
	at org.apache.axis2.axis2userguide.Client.multipleParameters(Client.java:110)
	at org.apache.axis2.axis2userguide.Client.main(Client.java:19)


> Memory leak in soap service client when remote service url is invalid.
> ----------------------------------------------------------------------
>
>                 Key: AXIS2-5800
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5800
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.3
>            Reporter: Jayachandra naidu K
>            Priority: Minor
>              Labels: easyfix, features
>   Original Estimate: 4m
>  Remaining Estimate: 4m
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message