Using getResponseBodyAsStream instead is recommended

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Using getResponseBodyAsStream instead is recommended

Postby swingman » Mon Jun 06, 2011 2:05 pm

Hi all,

I'm using the http plugin to fetch updates from a web site. Every time I get the following in the logs:
Code: Select all
2011-06-06 09:44   pool-5-thread-1003   WARN   org.apache.commons.httpclient.HttpMethodBase   Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
2011-06-06 09:43   pool-5-thread-1000   WARN   org.apache.commons.httpclient.HttpMethodBase   Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
2011-06-06 09:42   pool-5-thread-1002   WARN   org.apache.commons.httpclient.HttpMethodBase   Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
2011-06-06 09:41   pool-5-thread-1000   WARN   org.apache.commons.httpclient.HttpMethodBase   Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
2011-06-06 09:40   pool-5-thread-1001   WARN   org.apache.commons.httpclient.HttpMethodBase   Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

It is filling up my logs. This started happening in Servoy 5.2.x

C.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1128
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Using getResponseBodyAsStream instead is recommended

Postby rgansevles » Mon Jun 06, 2011 2:47 pm

Christian,

This is a harmless warning.
Note that in Servoy 6 the http client plugin no longer uses the commons-httpclient jar which generates this warning.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1854
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Using getResponseBodyAsStream instead is recommended

Postby swingman » Thu Jun 09, 2011 9:27 pm

harmless

Good!
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1128
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Using getResponseBodyAsStream instead is recommended

Postby jbrancoIF » Wed Feb 29, 2012 1:16 pm

Hi all.

I added this line
Code: Select all
log4j.logger.org.apache.commons.httpclient.HttpMethodBase=ERROR


to log4j properties in Servoy Settings to get rid of this harmless warnings, if anybody interested.
João Branco
InfoForm SA

Servoy 5.2.15
Window 7 64 bits, Java 1.6.0_37-b06
jbrancoIF
 
Posts: 39
Joined: Tue Jan 10, 2012 11:29 am


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 2 guests