tESBConsumer and chunking

One Star

tESBConsumer and chunking

My ESB route is calling a job Talend in order to call a webservices (SOAP)
In this job, I'm using a tESBConsumer.
When my message to send is small, the tESBConsumer working correctly.
When I'm trying to send a big message, I've got an error :
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType.  Incoming portion of HTML stream: <html xmlns:vega
at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:95)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:798)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1670)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1551)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1348)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:297)
at gyzmo.put_damages_0_1.PUT_DAMAGES$GenericConsumer.invoke(PUT_DAMAGES.java:818)

I'm thinking that's the problem comes from the chunking.
In the Runtime, I've add "client.AllowChunking =  false" in my file org.apache.cxf.http.conduits-common.cfg and reload my configuration but the error is still present.
Do you have any idea to resolve my point ?

Re: tESBConsumer and chunking

Would you mind posting your job setting screenshots into forum which will be helpful for us to address your issue?
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.
One Star

Re: tESBConsumer and chunking


You cna find some informations about my job.
One screen is the job calling, the second one is config of my tESBConsumer.
I'm posting a screenshot about my config too of the file org.apache.cxf.http.conduits-common.cfg 
For information, this error is coming when i'm trying to sent a big body (such as an image in base64).

One Star

Re: tESBConsumer and chunking

Screenshots :
One Star

Re: tESBConsumer and chunking


What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs


Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.