Manage Errors & on component error

One Star

Manage Errors & on component error

With the tHTML component I have the following error:

Exception in component tHTMLInput_2
java.lang.NullPointerException
    at pmi.getcurrency_bnh_html_0_1.GetCurrency_BNH_HTML.tHTMLInput_2Process(GetCurrency_BNH_HTML.java:1478)
    at pmi.getcurrency_bnh_html_0_1.GetCurrency_BNH_HTML.tSleep_1Process(GetCurrency_BNH_HTML.java:2076)
    at pmi.getcurrency_bnh_html_0_1.GetCurrency_BNH_HTML.runJobInTOS(GetCurrency_BNH_HTML.java:2338)
    at pmi.getcurrency_bnh_html_0_1.GetCurrency_BNH_HTML.main(GetCurrency_BNH_HTML.java:2159)

Is it possible to create a loop on the compoent until It is success?


Something like: on component error retry or loop


Any idea?

Thanks

Didier

Seventeen Stars

Re: Manage Errors & on component error

hi,
not sure about your expectation but call your job with tRunJob , uncheck die on child job & use tloop to manage loop (risk of infinitive loop )
So having a java null pointer exception is an expected behavior ???

regards
laurent
Moderator

Re: Manage Errors & on component error

Hi Didier,


Have you checked component TalendHelpCenter:tInfiniteLoop which allows you to to execute a task or a Job automatically, based on a loop.
The workflow should be:tInfiniteLoop-->iterate-->tHTMLInput-->tOutput-->OnsubjobOk-->tDie(to stop an infinite loop job).
More information about your job requirement will helpful for us to give you more accurate answers.

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: Manage Errors & on component error

Below my job:




I have the error on the tHTMLinput component accessing to the web site. Sometime it wirks sometimes it doesn't work!

So that means to implement something like:





is it correct?,

Thanks

Didier
Seventeen Stars

Re: Manage Errors & on component error

logicaly seems like ok (i' haven't reproduced your process Smiley Happy

did you test when page is not reached ? (not sure about kind of error : a java exception that 'll end application or not)


regards
laurent
One Star

Re: Manage Errors & on component error

Bad news!!

With the tInfiniteLoop and tdie components my two tables are not updated

If I remove these components, it works!

Any ideas???

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download