<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tESBConsumer how to catch and email error / exception in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334663#M103307</link>
    <description>Hi
&lt;BR /&gt;Do you have output in the Fault output flow? or the job throws exception and die? Can you show me the error message printed on the console?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
    <pubDate>Tue, 01 May 2012 14:28:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-01T14:28:47Z</dc:date>
    <item>
      <title>tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334662#M103306</link>
      <description>Hi,&lt;BR /&gt;I have a job with a tESBConsumer that calls a Soap service. However when the service is down for example I want to have an email with the error emailed to me.&lt;BR /&gt;I tried the Fault output or OnComponentError, but I am not able to catch the error and reroute it to be sent as an email.&lt;BR /&gt;How to do his?</description>
      <pubDate>Sat, 16 Nov 2024 12:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334662#M103306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334663#M103307</link>
      <description>Hi
&lt;BR /&gt;Do you have output in the Fault output flow? or the job throws exception and die? Can you show me the error message printed on the console?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 01 May 2012 14:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334663#M103307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T14:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334664#M103308</link>
      <description>And what version of Talend or you using?</description>
      <pubDate>Tue, 01 May 2012 14:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334664#M103308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-01T14:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334665#M103309</link>
      <description>I am using TOS 5.02 (latest stable release). To simulate that the Soap service I am connecting to is down, I am using a non existing URL to connect the service to. 
&lt;BR /&gt;btw I tried it with the option 'Die on error' in the component set on or off, but it makes no difference. 
&lt;BR /&gt;When I run the job I get the following error: 
&lt;BR /&gt;3-mei-2012 11:35:26 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging 
&lt;BR /&gt;WARNING: Interceptor for {http://www.talend.org/service/}orderStatusService#{http://cxf.apache.org/jaxws/dispatch}Invoke has thrown exception, unwinding now 
&lt;BR /&gt;org.apache.cxf.interceptor.Fault: Could not send Message. 
&lt;BR /&gt; at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64) 
&lt;BR /&gt; at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) 
&lt;BR /&gt; at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533) 
&lt;BR /&gt; at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463) 
&lt;BR /&gt; at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366) 
&lt;BR /&gt; at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319) 
&lt;BR /&gt; at org.apache.cxf.endpoint.ClientImpl.invokeWrapped(ClientImpl.java:354) 
&lt;BR /&gt; at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:381) 
&lt;BR /&gt; at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:241) 
&lt;BR /&gt; at org.talend.ws.helper.ServiceInvokerHelper.invoke(ServiceInvokerHelper.java:275) 
&lt;BR /&gt; at org.talend.ws.helper.ServiceInvokerHelper.invoke(ServiceInvokerHelper.java:167) 
&lt;BR /&gt; at bus001test.checksoapalive_0_1.checkSoapAlive.tFixedFlowInput_1Process(checkSoapAlive.java:1941) 
&lt;BR /&gt; at bus001test.checksoapalive_0_1.checkSoapAlive.runJobInTOS(checkSoapAlive.java:5038) 
&lt;BR /&gt; at bus001test.checksoapalive_0_1.checkSoapAlive.main(checkSoapAlive.java:4885) 
&lt;BR /&gt;Caused by: java.net.UnknownHostException: UnknownHostException invoking http://soapdummy: soapdummy 
&lt;BR /&gt; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
&lt;BR /&gt; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 
&lt;BR /&gt; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 
&lt;BR /&gt; at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 
&lt;BR /&gt; at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1431) 
&lt;BR /&gt; at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1416) 
&lt;BR /&gt; at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) 
&lt;BR /&gt; at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:649) 
&lt;BR /&gt; at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) 
&lt;BR /&gt; ... 13 more 
&lt;BR /&gt;Caused by: java.net.UnknownHostException: soapdummy 
&lt;BR /&gt; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) 
&lt;BR /&gt; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) 
&lt;BR /&gt; at java.net.Socket.connect(Socket.java:529) 
&lt;BR /&gt; at sun.net.NetworkClient.doConnect(NetworkClient.java:158) 
&lt;BR /&gt; at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) 
&lt;BR /&gt; at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) 
&lt;BR /&gt; at sun.net.www.http.HttpClient.&amp;lt;init&amp;gt;(HttpClient.java:233) 
&lt;BR /&gt; at sun.net.www.http.HttpClient.New(HttpClient.java:306) 
&lt;BR /&gt; at sun.net.www.http.HttpClient.New(HttpClient.java:323) 
&lt;BR /&gt; at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970) 
&lt;BR /&gt; at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911) 
&lt;BR /&gt; at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) 
&lt;BR /&gt; at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014) 
&lt;BR /&gt; at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1368) 
&lt;BR /&gt; at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1310) 
&lt;BR /&gt; at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:42) 
&lt;BR /&gt; at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69) 
&lt;BR /&gt; at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1388) 
&lt;BR /&gt; ... 16 more 
&lt;BR /&gt;Could not send Message. 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job checkSoapAlive ended at 11:35 03/05/2012.</description>
      <pubDate>Thu, 03 May 2012 10:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334665#M103309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-03T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334666#M103310</link>
      <description>Hi
&lt;BR /&gt;Add a tLogCatcher component in the job to capture the error and store it into a global variable which you will send it on a tSendMail component. For example:
&lt;BR /&gt;...tESBConsumer...
&lt;BR /&gt;tLogCapture--main--tJavaRow
&lt;BR /&gt; |
&lt;BR /&gt;onsubjobok
&lt;BR /&gt; |
&lt;BR /&gt;tSendMail
&lt;BR /&gt;on tJavaRow, putthe error message to a global variable, for example:
&lt;BR /&gt;globalMap.put("message", input_row.message);
&lt;BR /&gt;on tSendMail, set the message field as something like this:
&lt;BR /&gt;"The job runs failure, the error message is: "+(String)globalMap.get("message")
&lt;BR /&gt;In this case, a email is sent only when the job works failure.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 03 May 2012 13:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334666#M103310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-03T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334667#M103311</link>
      <description>Hi,&lt;BR /&gt;I tried your example with the tLogCatcher and then in the tJavaRow I used System.out.println( "ERROR:" + row4.message );&lt;BR /&gt;But this is never printed, not in the console or in the logfile?. It looks like the exceptions are not logged?&lt;BR /&gt;In my projects settings-&amp;gt;Job Settings my stats &amp;amp; logs are directed to a database, but in this job I disabled this.&lt;BR /&gt;&lt;BR /&gt;I added the settings of my job-&amp;gt;Stats &amp;amp; logs and my tLogCatcher settings.&lt;BR /&gt;&lt;BR /&gt;Is there a setting here I need to change?</description>
      <pubDate>Thu, 03 May 2012 15:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334667#M103311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-03T15:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334668#M103312</link>
      <description>Hi 
&lt;BR /&gt;On tJavaRow component, the correct expression should be: 
&lt;BR /&gt;System.out.println( "ERROR:" + input_row.message ); 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 03 May 2012 15:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334668#M103312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-03T15:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334669#M103313</link>
      <description>Hi,&lt;BR /&gt;I tried  input_row.message but same results, the tESBConsumer exception is not catched. &lt;BR /&gt;To test if other exceptions are catched I added a tJavaRow in my flow containing an exception:&lt;BR /&gt;String a = null;&lt;BR /&gt;a.indexOf(1);&lt;BR /&gt;&lt;BR /&gt;And when I now run the job then this exception is catched:&lt;BR /&gt;ERROR:java.lang.NullPointerException:null&lt;BR /&gt;It looks like this is a bug in tESBConsumer that exceptions are not catched at all?</description>
      <pubDate>Fri, 04 May 2012 07:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334669#M103313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-04T07:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334670#M103314</link>
      <description>Hi 
&lt;BR /&gt;Have you checked the option 'die on error' on tESBConsumer? In my job, tLogCatcher component catchs the excepttion thrown by tESBConsumer.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 04 May 2012 08:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334670#M103314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-04T08:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334671#M103315</link>
      <description>Hi,
&lt;BR /&gt;Yes!, enabling the 'Die on error' helps, now I am getting more info:
&lt;BR /&gt;javax.xml.ws.WebServiceException:Could not send Message.,code=1
&lt;BR /&gt;However the complete stacktrace itself is not printed, is it posisble to get the stacktrace as well?</description>
      <pubDate>Fri, 04 May 2012 13:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334671#M103315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-04T13:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334672#M103316</link>
      <description>Hi 
&lt;BR /&gt;Can you please upload some screenshots of job or export the job and send it to me via email for further investigation?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 04 May 2012 14:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334672#M103316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-04T14:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: tESBConsumer how to catch and email error / exception</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334673#M103317</link>
      <description>Hi Shong,
&lt;BR /&gt;I emailed the job to you, thanks for the help!</description>
      <pubDate>Fri, 04 May 2012 14:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tESBConsumer-how-to-catch-and-email-error-exception/m-p/2334673#M103317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-04T14:17:30Z</dc:date>
    </item>
  </channel>
</rss>

