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

Robert Lazarski commented on AXIS2-6009:
----------------------------------------

Turns out I have some 1.7.9 client code after all, that I switched to 
httpclient 4 a long time ago.

I removed the httpclient 4 jars in my code to confirm it: 

[java] Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/http/client/methods/HttpRequestBase
 [java] at 
org.apache.axis2.transport.http.impl.httpclient4.HTTPClient4TransportSender.createHTTPSender
(HTTPClient4TransportSender.java:74)
 [java] at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHT
TPTransportSender.java:380)
 [java] at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender
.java:234)

With my code below, HTTPClient4TransportSender is invoked as shown above:

EndpointReference targetEPR = new EndpointReference(
 endpoint);

OMElement payload = MyClient.definePayload();
 String omElementString = payload.toStringWithConsume();
 out.println("Sending Axis2 XML String ==> " + omElementString);
 Options options = new Options();
 options.setTo(targetEPR);
 options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
 ConfigurationContext configContext =
 
ConfigurationContextFactory.createConfigurationContextFromFileSystem("/home/robert/webserviceclient/repository","/home/robert/webserviceclient/axis2.xml");
 ServiceClient sender = new ServiceClient(configContext,null);


 sender.setOptions(options);
 OMElement result = sender.sendReceive(payload);

String response = result.getFirstElement().getText();
 out.println(response);

> ServiceClient::createClient intermittently under load blocks for 5 seconds
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-6009
>                 URL: https://issues.apache.org/jira/browse/AXIS2-6009
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.7.9
>            Reporter: Eoghan O'Hare
>            Priority: Major
>         Attachments: ExceptionStackTrace.txt, axis2client.7z, 
> axis2client_httpclient4.log
>
>
> Using the axis2-kernel-1.7.9.jar.
> Our application is using automatically generated WS stubs for asynchronous 
> SOAP web services over https. 
> ServiceClient::createClient is called for every asynchronous web service 
> request.
> Callbacks are registered using OperationClient::setCallback().
> The non blocking web service request is sent by the API 
> OperationClient::execute(false). 
> The option isUseSeparateListener is set to false.
> The default number of http connections are created, this is two from looking 
> at pcap traces.
> Under low load rates, 20 requests per second, 1000 total requests, 
> intermittently the call to ServiceClient::createClient blocks the calling 
> thread for 5 seconds. Seems to be just over 5 seconds every time it occurs 
> (between 5000ms and 5030ms), so it sounds like some timeout.
> The blocking seems to occur when a response to a previous web service is 
> received at a similar time.
> After the 5 second blocking, an Exception is thrown from axis2 to our 
> applications error callback. Exception stack trace is attached.
> I have tried to enable axis2 logging on the client side however there was 
> nothing obvious in it from my point of view. Attaching the log. In the log 
> the 5 second delay is between;
> 06:47:50:574
> 06:47:55:579
> If you require additional logging to be enabled to debug please let me know.
> Or if you need any further information, please let me know.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to