Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

Labels (2)
5 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Below my job:


0683p000009MGc7.png

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:
0683p000009MGcC.png




is it correct?,

Thanks

Didier
Anonymous
Not applicable
Author

logicaly seems like ok (i' haven't reproduced your process 0683p000009MACn.png

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
Anonymous
Not applicable
Author

Bad news!!

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

If I remove these components, it works!

Any ideas???