I’ve been experimenting with using the http plugin to connect to Servoy’s REST capacities. It seems to be working fairly well, but I keep getting the following message in the Server logs
org.apache.commons.httpclient.HttpMethodBase Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
I’m not sending terribly large messages back and forth, so I’m not sure why it keeps happening, but I would like to find a way to not be filling up my logs with this message all the time, if possible.
James,
This is either the rest_ws plugin servlet not returning the reponse size, or the http client plugin not using an optimal api for large results.
Can you check if the rest_ws result contains a content-length header?
And how large is the result?
Rob
Interestingly enough I’m not getting the same messages today as yesterday…I’ve changed some code, but I don’t think anything that would affect that. I will keep an eye out for this again though and update if I get the messages again.
It appears that the rest_ws plugin is not returning a content-length…when I pull the network traffic with wireshark this is what it is sending back
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, must-revalidate, proxy-revalidate
Expires: 0
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 19 Dec 2011 22:54:03 GMT
19
{"data":true,"stat":true}
James,
This is fixed in next Servoy 6 release.
Rob
Is there a way we can turn off the logging of this message in 5.2?
With the frequency at which we get these messages it’s basically spam that will prevent us from seeing any important messages without serious digging.
It would be good to get rid of these – they are clogging up our logs as well.
Would getting the rest_ws.jar plugin from a Servoy 6 and putting it into servoy 5.2.12 work and potentially fix this problem for us?