Five Stars

tESBConsumer gives an error when request message size is to big

Hi Community,
Perhaps one of you can help us out with this. 
I observed the following behaviour on talend job on TalendESB open studio 5.5.1r118616. 
We have a Talend job we published as webservice on the TalendESB runtime, here the simplified schema:
tESBProviderRequest   ---> tXMLMap  ---> tESBConsumer  ---> tXMLMap  ----> tESBProviderResponse
the first TXMLMAp produces a request message that is enriched with some db lookups and that we send to another webservice (tESBConsumer). 
The output of this TXMLMap has one element of type Document (payload), so the tESBConsumer has no message format defined (builtin).
When the produced request message has a size of more than about 4000 characters, the tESBConsumer component fails with the following trace:
Exception in component tESBConsumer_2
org.apache.cxf.interceptor.Fault: Connection reset
at org.apache.cxf.interceptor.LoggingInInterceptor.logInputStream(
at org.apache.cxf.interceptor.LoggingInInterceptor.logging(
at org.apache.cxf.interceptor.LoggingInInterceptor.handleMessage(
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
at org.apache.cxf.endpoint.ClientImpl.onMessage(
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
at org.apache.cxf.transport.AbstractConduit.close(

When the  request message has less than 4000 characters, everything works fine. We think that the tESBConsumer has this limitation. Is there a way to configure the maximum size of the request message? 

If we take the produced request message produced by talend (logged message) and send it directly to the webservice (with soapui for example), the ws response correctly. There is no such size limitation on the target webservice.
Any idea or hint would be helpful as i am looking around for a "clean" solution for some time now.

Re: tESBConsumer gives an error when request message size is to big

Did you set "Connection Time out" and "Receive Time out" in Advanced Settings of tESBConsumer?
Best regards
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: tESBConsumer gives an error when request message size is to big

thank you for responding. I actually found out were the problem was.
TesbCosumer uses chunking of the request mesage when the message is bigger than 4000 chars. Our server did not support chunked message.
Adding the following configuration to the runtime corrected the issue:
add this line to the cfg files:
client.AllowChunking = false
in ...Runtime_ESBSE\container\etc
In the TOS we could not find a way to make it work, as it is not possible to set client.AllowChunking = false in a esbconsumer.
there is a related issue in your bugtracker:

Thanks anyway
Five Stars

Re: tESBConsumer gives an error when request message size is to big

here the bugtracker link: