[
https://issues.jboss.org/browse/JBESB-3564?page=com.atlassian.jira.plugin...
]
Kevin Conner commented on JBESB-3564:
-------------------------------------
The warning message is "Going to buffer response body of large or unknown size. Using
getResponseBodyAsStream instead is recommended.".
It is usually seen with chunking enabled, which we should ignore, but we should add a
warning for exceeding certain sizes of responses.
Remove calls to HttpMethodBase methods getResponseBody and
getResponseBodyAsString
----------------------------------------------------------------------------------
Key: JBESB-3564
URL:
https://issues.jboss.org/browse/JBESB-3564
Project: JBoss ESB
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Web Services
Affects Versions: 4.9
Reporter: Kevin Conner
Priority: Minor
Invoking the getResponseBody or getResponseBodyAsString methods of HttpMethodBase can
lead to a WARN being displayed if the invoked endpoint returns -1 (chunking) or if the
content length is greater then the default (1M).
If we change the invocations to use getResponseBodyAsStream (as done in HttpRouter) then
we can handle the buffering ourselves and remove the warning.
From what I can see the methods are used in the following locations
getResponseBody -
RemoteWsdlLoader and EsbWsdlLoader
getResponseBodyAsString -
soapui SOAPClient
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira