One Star

Problem connecting to Salesforce (connection timeout)

Hi there,
We`ve been using Talend for a while and there were no problems with our jobs. But a day ago all jobs started to fire Connection timeout errors:
Exception in component tSalesforceInput_1
org.apache.axis2.AxisFault: Connection timed out: connect
at org.apache.axis2.AxisFault.makeFault(
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
at org.apache.axis2.transport.http.HTTPSender.send(
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
at org.apache.axis2.engine.AxisEngine.send(
at org.apache.axis2.description.OutInAxisOperationClient.send(
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
at org.apache.axis2.client.OperationClient.execute(
at com.salesforce.soap.partner.SforceServiceStub.query(
at org.talend.salesforce.SforceManagementImpl.query(
at project1.coolair_accountbalance_0_1.CoolAir_AccountBalance.tSalesforceInput_1Process(
at project1.coolair_accountbalance_0_1.CoolAir_AccountBalance.tMSSqlInput_1Process(
at project1.coolair_accountbalance_0_1.CoolAir_AccountBalance.tJava_1Process(
at project1.coolair_accountbalance_0_1.CoolAir_AccountBalance.runJobInTOS(
at project1.coolair_accountbalance_0_1.CoolAir_AccountBalance.main(
Caused by: Connection timed out: connect
at Method)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(
at org.apache.commons.httpclient.HttpClient.executeMethod(
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
... 14 more
That is weird because nothing have changed in Salesforce and on our sever(where jobs are scheduled to run every 15 min.)
We are using Salesforce live environment, and from what I can see Talend can log in to Salesforce but looks like then it is waiting for query to execute or so which should not be an issue as query is small and returns just few records.
Do you have any suggestions what can be wrong here?

Re: Problem connecting to Salesforce (connection timeout)

Hi Oles,
On which official version did you get that? Did you set timeout on component tSalesforceInput? Are you connecting through a proxy?
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: Problem connecting to Salesforce (connection timeout)

If I'm using a proxy, Do I need to set the proxy in talend preferences or setting the proxy in Salesforce metadata advanced setting will work?

Forteen Stars TRF
Forteen Stars

Re: Problem connecting to Salesforce (connection timeout)

This is a new topic