Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mleczec
Contributor
Contributor

tRestClient with connection timed out on Azure Server

Hello, unfortunately I can't get any further with this problem. Do you have an idea? I have a job with a tRestClient component that works locally on my PC. I am iterating over 20 pages of a REST API whose data I subtract. As I said, this works smoothly locally. Even on a Talend Test Server, after I published the job, the job works without errors. This test server is on-premise in our company. But when I publish the job on the Talend Prod Server in the Azure Cloud, I get a "connection timed out" between 8 and 14 pages. It starts up and also fetches data. But it keeps breaking off. You can assume that the error is in Azure, but on the one hand I don't know what should be set on Azure so that it works and on the other hand, after reading the error message, I am not sure whether it is not because of Talend after all:

 

ERROR | 2021-06-08T14:45:49.875+0200 | org.talend.ipaas.rt.deployment-agent:2.8.0 | Task 60be50385ab785317e4c51a1/17.17 failed unexpectedly.

org.talend.ipaas.rt.flow.controller.impl.FlowExecutionException: Step 0aaff188-4fee-47eb-90fb-dbfe68e12618 failed with code -1 and error Job stopped with errors or unable to run. Exception in component tRESTClient_3 (OroProd) javax.ws.rs.ProcessingException: java.net.ConnectException: ConnectException invoking https://www.XXXXXX.de/XXXXXX/api/customerusers?page[number]=10&page[size]=70&meta=title: Connection timed out: connect

at org.talend.ipaas.rt.flow.controller.impl.JobControllerImpl.doRun(JobControllerImpl.java:98) ~[?:?]

at org.talend.ipaas.rt.flow.controller.impl.AbstractControllerImpl.lambda$run$0(AbstractControllerImpl.java:106) ~[?:?]

at java.lang.Thread.run(Thread.java:834) [?:?]

Caused by: java.lang.Exception: Job stopped with errors or unable to run. Exception in component tRESTClient_3 (OroProd) javax.ws.rs.ProcessingException: java.net.ConnectException: ConnectException invoking https://www.XXXXXX.de/XXXXXX/api/customerusers?page[number]=10&page[size]=70&meta=title: Connection timed out: connect

... 3 more

 

 

WARN | 2021-06-08T14:45:48.806+0200 | tipaas-jobserver-client:2.8.0 | Interceptor for {https://www.XXXXXX.de/XXXXXX/api/customerusers}tRESTClient has thrown exception, unwinding now

org.apache.cxf.interceptor.Fault: Could not send Message.

at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:67)

at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)

at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:710)

at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1051)

at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:897)

at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:866)

at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:431)

at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:611)

at dwh.oroprod_0_1.OroProd.tRESTClient_3Process(OroProd.java:41647)

at dwh.oroprod_0_1.OroProd.tLoop_1Process(OroProd.java:32128)

at dwh.oroprod_0_1.OroProd.tDBCommit_5Process(OroProd.java:31749)

at dwh.oroprod_0_1.OroProd.tDBRow_1Process(OroProd.java:31498)

at dwh.oroprod_0_1.OroProd.tDBCommit_4Process(OroProd.java:31193)

at dwh.oroprod_0_1.OroProd$5.run(OroProd.java:30833)

Caused by: java.net.ConnectException: ConnectException invoking https://www.XXXXXX.de/XXXXXX/api/customerusers?page[number]=10&page[size]=70&meta=title: Connection timed out: connect

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)

at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1402)

at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1386)

at org.apache.cxf.io.AbstractWrappedOutputStream.close(AbstractWrappedOutputStream.java:77)

at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)

at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:673)

at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)

... 13 more

Caused by: java.net.ConnectException: Connection timed out: connect

at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)

at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)

at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)

at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)

at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)

at java.base/java.net.Socket.connect(Socket.java:609)

at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)

at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)

at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)

at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265)

at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)

at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)

at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1227)

at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)

at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)

at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)

at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)

at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)

at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)

at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:377)

at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:373)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:373)

at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1599)

at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1627)

at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1572)

at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1373)

... 17 more

 

 

I appreciate any help.

 

Best regards

Christoph Mleczek

Labels (3)
1 Reply
Anonymous
Not applicable

Hello,

There is a field at the Advanced Settings of tRestClient that defines the Connection timeout and Receive Timeout in seconds.

Could you please show us your job setting screenshots on community? Which will be helpful for us to address your issue.

Best regards

Sabrina