Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6C0110203 for ; Mon, 29 Dec 2014 21:56:23 +0000 (UTC) Received: (qmail 42084 invoked by uid 500); 29 Dec 2014 21:56:24 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 42030 invoked by uid 500); 29 Dec 2014 21:56:24 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Delivered-To: moderator for dev@airavata.apache.org Received: (qmail 41373 invoked by uid 99); 29 Dec 2014 21:53:45 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of prvs=433ee4cdd=BATTULK@nationwide.com designates 155.188.168.26 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nationwide.com; i=@nationwide.com; l=6353; q=dns/txt; s=columbus.ohio; t=1419890019; x=1451426019; h=to:mime-version:subject:x-keepsent:x-mailer:from: message-id:date:x-mimetrack:content-type; bh=ZzBpCTQCv338rigzSqynqb1hymy8hGoF8KSVVxSDEZ0=; b=XwM1VcivvjqnOCfIeoXV3mHPVx14HBfGY+wDXuUpDLokymwedblF9Xx6 M0nOb5M0Y5qIVuiEQbf3c8bBZBCueg==; To: dev@airavata.apache.org MIME-Version: 1.0 Subject: REQUEST For response: [jira] [Created] (AIRAVATA-711) Timeout waiting for connection X-KeepSent: 7D9E726F:29DCE2A6-85257DBD:0077AC32; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1FP1 SHF405 July 15, 2014 From: BATTULK@nationwide.com Message-ID: Date: Mon, 29 Dec 2014 16:52:17 -0500 X-MIMETrack: Serialize by Router on EntEDCMail51/SRV/NWIE(Release 8.5.3FP3 HF308|March 28, 2013) at 12/29/2014 04:52:17 PM, Serialize complete at 12/29/2014 04:52:17 PM Content-Type: multipart/alternative; boundary="=_alternative 007824D185257DBD_=" X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. --=_alternative 007824D185257DBD_= Content-Type: text/plain; charset="US-ASCII" Hi, I am getting following error from my application, we are using axis2 1.6.2 version. Caused by: org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:497) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199) As per google forum suggestions, I tried all options where in setting properties to ConfigurationContext. Its throwing another error saying java.lang.ClassCastException: org.apache.commons.httpclient.HttpClient incompatible with org.apache.commons.httpclient.HttpClient at org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:493) import org.apache.axis2.client.Stub; import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.transport.http.HTTPConstants; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; import org.apache.commons.httpclient.params.HttpConnectionManagerParams; private void setContextProperties(Stub stub) { ConfigurationContext context = stub._getServiceClient().getServiceContext().getConfigurationContext(); context.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true); context.setProperty(HTTPConstants.AUTO_RELEASE_CONNECTION, true); MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager = new MultiThreadedHttpConnectionManager(); HttpConnectionManagerParams params = new HttpConnectionManagerParams(); params.setDefaultMaxConnectionsPerHost(20); //Set this value as per your need. multiThreadedHttpConnectionManager.setParams(params); HttpClient httpClient = new HttpClient(multiThreadedHttpConnectionManager); context.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient); } Could you please check and let me know your thoughts on resolving this issue? Your response is appreciated & Thanks in advance. Thanks, kalyani. --=_alternative 007824D185257DBD_= Content-Type: text/html; charset="US-ASCII" Hi,
  I am getting following error from my application, we are using axis2 1.6.2 version.

Caused by: org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:497)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)


As per google forum  suggestions, I tried all options where in setting properties to ConfigurationContext. Its throwing another error saying
java.lang.ClassCastException: org.apache.commons.httpclient.HttpClient incompatible with org.apache.commons.httpclient.HttpClient
at org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:493)



import org.apache.axis2.client.Stub;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
import org.apache.commons.httpclient.params.HttpConnectionManagerParams;

private void setContextProperties(Stub stub) {
ConfigurationContext context = stub._getServiceClient().getServiceContext().getConfigurationContext();
context.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true);
context.setProperty(HTTPConstants.AUTO_RELEASE_CONNECTION, true);
MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager = new MultiThreadedHttpConnectionManager();
HttpConnectionManagerParams params = new HttpConnectionManagerParams();
params.setDefaultMaxConnectionsPerHost(20); //Set this value as per your need.
multiThreadedHttpConnectionManager.setParams(params);
HttpClient httpClient = new HttpClient(multiThreadedHttpConnectionManager);
context.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient);
}

Could you please check and let me know your thoughts on resolving this issue? Your response is appreciated & Thanks in advance.

Thanks,
kalyani. --=_alternative 007824D185257DBD_=--