One Star

Error in calling Talend 6.0.1 tRESTClient in job scheduled in TAC

Hi,
We have a call to a rest web service which works in Talend DI 5.5 when running in production using the TAC.
We imported that job into Talend DI 6.0.1. We are able to run the job locally. However, when we run the job in production as a scheduled job in TAC, it gets the following error.
Error :
: org.apache.cxf.phase.PhaseInterceptorChain - Interceptor for {}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:64)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
        at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:636)
        at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1091)
        at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:894)
        at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:865)
        at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:428)
        at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:611)
        at lmuexp.testing_0_1.testing.tRESTClient_1Process(testing.java:2275)
        at lmuexp.testing_0_1.testing.runJobInTOS(testing.java:3403)
        at lmuexp.testing_0_1.testing.main(testing.java:3175)
Caused by: java.io.IOException: IOException invoking : HTTPS hostname wrong:  should be <api.orgsync.com>
Any help would be greatly appreciated.
Peace,
Sylvester
7 REPLIES
Moderator

Re: Error in calling Talend 6.0.1 tRESTClient in job scheduled in TAC

Hi,
Are you also using TAC 6.0.1? Are you studio 6.0.1 and TAC at the same machine?
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.
One Star

Re: Error in calling Talend 6.0.1 tRESTClient in job scheduled in TAC

No the TAC is on a server and the Studio is on my local dev machine
One Star

Re: Error in calling Talend 6.0.1 tRESTClient in job scheduled in TAC

Getting below error from tRestClient Component. Talend platform for MDM version 5.6.1, java version is 1.7
The url on which we are trying to post is up and running all the time. When we post sample xml to that URL from firefox we get 200 back is response but it failss in tRestClient component. Which logs we should check? We have checked sql server log and MDM server logs already. Any help would be greatly appreciated.
WARN   Interceptor for {}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:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:635)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1071)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:878)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:852)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:410)
at org.apache.cxf.jaxrs.client.WebClient.post(WebClient.java:441)
Caused by: java.net.ConnectException: ConnectException invoking rest end url : Connection refused: connect
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 org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1347)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1331)
at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:56)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:223)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 14 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
-------------
child job returns 1. It doesn't terminate normally.
Exception in component tRESTClient_1
javax.ws.rs.client.ClientException: javax.ws.rs.client.ClientException: java.net.ConnectException: ConnectException invoking actual rest end url: Connection refused: connect
at org.apache.cxf.jaxrs.clie
Thanks
Smita
Moderator

Re: Error in calling Talend 6.0.1 tRESTClient in job scheduled in TAC

Hi Smitab,
Did you run your job successfully in studio? You got this error when calling your  tRestClient in TAC?

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.
One Star

Re: Error in calling Talend 6.0.1 tRESTClient in job scheduled in TAC

Hi Sabrina
No job fails from studio as well as from TAC.
This error doesn't come all the time. Sometimes it works properly but sometimes not. We captured Wireshark logs as well. In case of failure nothing comes in Wireshark logs which means it is getting lost before reaching to network in talend.
I feel it is very close to below forum bug. What was the solution for this. This issue is coming on our Production. We need very urgent help here.

Thanks
Smita
One Star

Re: Error in calling Talend 6.0.1 tRESTClient in job scheduled in TAC

We need urgent help on this topic as this is production issue. Last week we faced this issue for the first time 2 months after we are in production. Now it is coming randomly
Moderator

Re: Error in calling Talend 6.0.1 tRESTClient in job scheduled in TAC

Hi Smita,
Please report a ticket on Talend Support Portal so that we can give you a remote assistance for your urgent issue through support cycle with priority.
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.