One Star

Talend 6.0.1 tSalesforceInput error Failed to read POST

Hi,
I am currently using Talend 5.6.1
I wanted to change to TOS DI 6.0.1 (Windows 7, 64b, java 7)  but I cannot use soap compression in the tSalesforceInput components.
I have the error below:
I have seen this Jira ticket .  However, even after I replaced the salesforceCRMManagement jar file with the one in TOS 5.6.1, the job is still not working.
Please help me in solving this issue. Thanks !

Exception in component tSalesforceInput_1
com.salesforce.soap.partner.UnexpectedErrorFault: UNKNOWN_EXCEPTION: Failed to read POST: The Content-Encoding of the message specifices GZIP, but the data is not in valid GZIP format. Content-Encoding: gzip
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at com.salesforce.soap.partner.SforceServiceStub.login(SforceServiceStub.java:13386)
    at org.talend.salesforce.SforceBasicConnection.renewSession(SforceBasicConnection.java:77)
    at org.talend.salesforce.SforceBasicConnection.init(SforceBasicConnection.java:71)
    at org.talend.salesforce.SforceBasicConnection.<init>(SforceBasicConnection.java:49)
    at org.talend.salesforce.SforceBasicConnection.<init>(SforceBasicConnection.java:25)
    at org.talend.salesforce.SforceBasicConnection$Builder.build(SforceBasicConnection.java:125)
6 REPLIES
Employee

Re: Talend 6.0.1 tSalesforceInput error Failed to read POST

The link to the JIRA went missing. Can you repost?
Can you also provide an example for you use?
Thomas Steinborn
VP Product Management
Employee

Re: Talend 6.0.1 tSalesforceInput error Failed to read POST

We found the issue. See TDI-34143.
For now use a tSalesforceConnection with the input and make sure that chunked is set to true together with compression.
Thomas Steinborn
VP Product Management
One Star

Re: Talend 6.0.1 tSalesforceInput error Failed to read POST

Hi,
Thanks for your advice.
However, this won't fix my problems. 
In the tSalesforceConnection, "Output Http Trace Message" can be set to true only if I set to true "For salesforce bulk component"
Unfortunately bulk query is slower than the Query mode and this is a disadvantage for me. 
Also tSalesforceUpdated component cannot support the bulk query. 
Is there another way to set the Http Chunked to true?
Four Stars

Re: Talend 6.0.1 tSalesforceInput error Failed to read POST

Hello Stein,
I'm also facing the same sort of issue in connecting with tSalesforce components.  It throws me the error as follows,
>>>
Exception in component tSalesforceInput_2
org.apache.axis2.AxisFault: www.salesforce.com
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at ...
<<<
I have tried both true and false on Http chunked.  Please let me know what was the way to run my job to get connected with SF and to fetch the data?

Moderator

Re: Talend 6.0.1 tSalesforceInput error Failed to read POST

Hi Upendra1630,
Can you successfully connect to your Salesforce without using Talend Tool? Have you tried to set Salesforce connection in metadata to see if it works?
Here is the document about:TalendHelpCenterSmiley Frustratedupported systems databases and business applications by Talend components.
Salesforce:V34 and earlier
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Talend 6.0.1 tSalesforceInput error Failed to read POST

Hi Sabrina,
I'm using 19.0 API (Version) not more than 32.0.  Kindly request you to help me out on this!!
To avoid confusion, please help to respond in the following link (same discussion under different topic)
https://www.talendforge.org/forum/viewtopic.php?pid=177103#p177103