[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlrpc-user
Subject: Warning on execute() by SimpleHttpConnectionManager
From: Christoph Jaehnigen <christoph.jaehnigen () gmail ! com>
Date: 2009-07-09 9:03:27
Message-ID: 7a522ce80907090203m35f8c109sf1d2948cf5e0e72 () mail ! gmail ! com
[Download RAW message or body]
Hi,
i get the following warning on every xmlRpcClient.execute() :
org.apache.commons.httpclient.SimpleHttpConnectionManager
getConnectionWithTimeout
WARNUNG: SimpleHttpConnectionManager being used incorrectly. Be sure
that HttpMethod.releaseConnection() is always called and that only one
thread and/or method is using this connection manager at a time.
What could be the reason for this? Here is the initialization code I use:
HttpClient httpClient = new HttpClient();
HttpClientParams httpClientParams = new HttpClientParams();
httpClient.setParams(httpClientParams);
HttpConnectionManager httpConnectionManager =
httpClient.getHttpConnectionManager();
httpConnectionManager.setParams(arg0)
xmlRpcClient = new XmlRpcClient();
XmlRpcCommonsTransportFactory factory = new
XmlRpcCommonsTransportFactory(xmlRpcClient);
factory.setHttpClient(httpClient);
xmlRpcClient.setTransportFactory(factory);
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(url);
config.setBasicUserName(username);
config.setBasicPassword(password);
xmlRpcClient.setConfig(config);
Thx a lot
Chris
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic