Menu

httpclient warning

2009-06-09
2013-03-13
  • Robert Boyce

    Robert Boyce - 2009-06-09

    i get warning:

    Jun 9, 2009 1:38:13 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
    WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

    for every internet access (stock scan period). does not matter what country. is this a known problem?

    using jstock version 1.0.4d

     
    • yccheok

      yccheok - 2009-06-10

      httpclient encourage users to use getResponseBodyAsStream, and process the stream as incoming packet data.

      However, in order to avoid complication, all the parsing code, are expecting complete data, before begin the parsing.

      We rather get a complete respond body first, before begin the parsing job. We use the mythology since the very first version of jstock. It works fine so far.

      Hence, you may safely ignore the result. :)

      Are you running jstock by compiling from source and run through IDE? As I remember, I had turned off the warning message, for all official deployed jstock.

       
    • Robert Boyce

      Robert Boyce - 2009-06-10

      i was just checking to see if you were aware of the problem.

      this warning seems ridiculous for every access on httpclient's part.

      i assume you tried to defeat the warning for your design strategy.

      not complaining, just letting you know if you did not already.

      bob