|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Warning: SimpleHttpConnectionManager being used incorrectlyI get the following warning from the SimpleHttpConnectionManager:
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. Is there a way to supress these warning messages from the console? Under which circumstances can this warning appear? For the background: I use the HttpClient in an Apache XML-RPC client context in a single-threaded library. The warning just appears when I use this library via JPype in Python scripts, which are also single-threaded. Any idea how to fix this small issue? Or an explanation why it happens? Thx Chris --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@... For additional commands, e-mail: httpclient-users-help@... |
|
|
Re: Warning: SimpleHttpConnectionManager being used incorrectlyOn 23/09/2009, Christoph Jaehnigen <christoph.jaehnigen@...> wrote:
> I get the following warning from the SimpleHttpConnectionManager: > > 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. > > Is there a way to supress these warning messages from the console? > Under which circumstances can this warning appear? > > For the background: I use the HttpClient in an Apache XML-RPC client > context in a single-threaded library. The warning just appears when I > use this library via JPype in Python scripts, which are also > single-threaded. > > Any idea how to fix this small issue? Or an explanation why it happens? Does the code do what the error message says? The error message says it all really... > Thx > Chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@... > For additional commands, e-mail: httpclient-users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@... For additional commands, e-mail: httpclient-users-help@... |
|
|
Re: Warning: SimpleHttpConnectionManager being used incorrectlyOn Wed, Sep 23, 2009 at 17:20, sebb <sebbaz@...> wrote:
> > Does the code do what the error message says? > > The error message says it all really... That's the point: I do not explicitly use threading, not in Java and not in the Python code myself. As I get the warnings just when using the Java library via JPype in Python there seems to be some threading involved but I could not figure out where and why. Chris --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@... For additional commands, e-mail: httpclient-users-help@... |
|
|
Re: Warning: SimpleHttpConnectionManager being used incorrectlyOn 23/09/2009, Christoph Jaehnigen <christoph.jaehnigen@...> wrote:
> On Wed, Sep 23, 2009 at 17:20, sebb <sebbaz@...> wrote: > > > > Does the code do what the error message says? > > > > The error message says it all really... > > > That's the point: I do not explicitly use threading, not in Java and > not in the Python code myself. As I get the warnings just when using > the Java library via JPype in Python there seems to be some threading > involved but I could not figure out where and why. > "Be sure that HttpMethod.releaseConnection() is always called" ? > Chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@... > For additional commands, e-mail: httpclient-users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@... For additional commands, e-mail: httpclient-users-help@... |
|
|
Re: Warning: SimpleHttpConnectionManager being used incorrectlyOn Wed, Sep 23, 2009 at 05:53:03PM +0200, Christoph Jaehnigen wrote:
> On Wed, Sep 23, 2009 at 17:20, sebb <sebbaz@...> wrote: > > > > Does the code do what the error message says? > > > > The error message says it all really... > > That's the point: I do not explicitly use threading, not in Java and > not in the Python code myself. As I get the warnings just when using > the Java library via JPype in Python there seems to be some threading > involved but I could not figure out where and why. > > Chris > This has nothing to do with threading. This warning simply indicates that the connection manager received a request for HTTP connection that has been already allocated (and never released back). Oleg > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@... > For additional commands, e-mail: httpclient-users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@... For additional commands, e-mail: httpclient-users-help@... |
|
|
Re: Warning: SimpleHttpConnectionManager being used incorrectlyOn Wed, Sep 23, 2009 at 18:23, Oleg Kalnichevski <olegk@...> wrote:
> > This has nothing to do with threading. This warning simply indicates that the > connection manager received a request for HTTP connection that has been already > allocated (and never released back). Ah, slowly getting to it: it seems that when calling the Java library (with the HttpClient inside) from Python, the HTTP connection closing does not work. In the XML-RPC code I found the place where they silently ignore the exception being thrown when closing a connection fails. Thx for the hints, anyway I do not see a way to get that fixed myself. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@... For additional commands, e-mail: httpclient-users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |