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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tLogCatcher does not catch Java Exception

Hi,
I have a job which does some work, and calls some subjobs. This main work is connected by a flow and has one start point (highlighted as green).
I want every Java exception been kept by tLogCatcher.
I created a tLogCather job as standalone job (not within the main flow). One sub job follows the tLogCatcher. The sub job shall make some entries in my databases log-table. The tLogCatcher is also highlighted as green and "catch Java Exceptions" is checked, tDie and tWarn isnt checked.
I found this Thread which unfortunately stays unsolved. There one told about a checkbox for multithreading. I do not have such an option for tLogCatcher.
Well when executing my job the console shows an Java exception. I do not understand why my log job isnt called.
One thought, I was not able to find an answer on is if I need to create a tlogCather on every subjob or if its enough to have one on the main job.
For further imagination here are some Screenshots about my job and the options of tLogCatcher.
Any help would be grateful. Thanks in advance.

Labels (3)
27 Replies
Anonymous
Not applicable
Author

Hi,
Hi,
on a forumpost
I was not able to insert screenhots.
The postfield offered me to interactiv fields to drag&drop files or copy&paste images.
I tried using drag and drop png-files of size about 50kb. It did not work while giving me a failmessage that the uploaded file would not meet requirements.
Clicking a png file from my desktop, clicking + <C> to copy it, then click in forum post area on the interactive field "dopy&paste screenshots" and then click +

to paste it will upload the image and show a thumbnail under my post-text. All looking fine. When click on post my post is posted but without any screenshot.
When now clicking in toolbar above the next answer-area on "upload" it will show me my screenshots but I cannot successfully drag them to my post area.
Due to this I tried to insert URLs of my png files now externally uploaded but the post is postet without the URLs.
I now did it with posting broken URLs (I inserted some blanks).
A Talend team member asked me to post screenshots. Well its not that easy.
You may should remove the new-user-blocks.
Thanks.

</C>

Actually, there is no new-user-blocks for Image but URL. When you click "upload" button and upload files, make sure the uploaded screenshots is loaded in your current post.
See my screenshots.
Let me know if it is OK with you.
Best regards 
Sabrina
 
  0683p000009MAQb.png
 
0683p000009MAOC.png
Anonymous
Not applicable
Author

yeah my screenshot was shown as your second picture in the post-area
I hit submit button and the screenshots were not shown
Anonymous
Not applicable
Author

 
Anonymous
Not applicable
Author

even with another browser i am not able to insert images
i now clicked on upload, my uploaded pictures where listed/ shown there
I click at one image, the image is now displayed in the content area
when clicking submit as above the post is posted without any image
on preview the image is still shown
Anonymous
Not applicable
Author

maybe I am able to send you images per mail?
if you want you can send me an email first on (pls delete blanks here again)
sebastian . krings @ atos . net
I try to describe again what I have:
a main job with some sub jobs
and some places the console logs red-colored-textlines, which are not the trace of a java exception but theyre errors, theyre red, I do not log red text.
The full console output of one run of the mainjob is exactly as follows:
ACTION    LEVEL    MESSAGE    TIMESTAMP_START    TIMESTAMP_END    SUCCESS
JOBNAME|ACTION|null|31-07-2014||
File is Valid
File is Valid
File is Valid
File is Valid
File is Valid
File is Valid
Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
File is Invalid
There is a Fatal Error on line 1 : Premature end of file.
There is an Error on line 1 : Premature end of file.
File is Valid
File is Valid
File is Valid
File is Valid
File is Valid
File is Valid
Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
There is a Fatal Error on line 1 : Premature end of file.
There is an Error on line 1 : Premature end of file.
File is Invalid
File is Valid
File is Valid
File is Valid
File is Valid
File is Valid
File is Valid
Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
File is Invalid
There is a Fatal Error on line 1 : Premature end of file.
There is an Error on line 1 : Premature end of file.
File is Valid
File is Valid
File is Valid
File is Valid
File is Valid
File is Valid
Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
File is Invalid
There is a Fatal Error on line 1 : Premature end of file.
There is an Error on line 1 : Premature end of file.

I have a tLogCatcher component, which flows to a subjob which makes a tmap before tDBOut
when setting a breakpoint on it, it is never called
On live application server the console shows the following outout:
ACTION LEVEL MESSAGE TIMESTAMP_START TIMESTAMP_END SUCCESS
ACTION LEVEL MESSAGE TIMESTAMP_START TIMESTAMP_END SUCCESS
FETCH_FILE|ERROR|(file not loaded - first try of three.
|
There isContinue_tFileFetch_1 an exception on: {>URL<}
java.lang.Exception: Method failed: HTTP/1.0 500 Internal Server Error
at package.file_fetcher_0_1.FILE_FETCHER.tFileFetch_1Process(FILE_FETCHER.java:851)
at package.file_fetcher_0_1.FILE_FETCHER.runJobInTOS(FILE_FETCHER.java:2124)
at package.file_fetcher_0_1.FILE_FETCHER.runJob(FILE_FETCHER.java:1803)
at package.fetch_file_worker_0_1.FETCH_FILE_WORKER.tRunJob_1Process(FETCH_FILE_WORKER.java:948)
at package.fetch_file_worker_0_1.FETCH_FILE_WORKER$2.run(FETCH_FILE_WORKER.java:2517)

There isContinue_tFileFetch_1 an exception on:{>URL<}
java.lang.Exception: Method failed: HTTP/1.0 500 Internal Server Error

at package.file_fetcher_0_1.FILE_FETCHER.tFileFetch_1Process(FILE_FETCHER.java:851)
at package.file_fetcher_0_1.FILE_FETCHER.runJobInTOS(FILE_FETCHER.java:2124)
at package.file_fetcher_0_1.FILE_FETCHER.runJob(FILE_FETCHER.java:1803)
at package.fetch_file_worker_0_1.FETCH_FILE_WORKER.tRunJob_3Process(FETCH_FILE_WORKER.java:1402)
at package.fetch_file_worker_0_1.FETCH_FILE_WORKER$4.run(FETCH_FILE_WORKER.java:2609)
Anonymous
Not applicable
Author

I now found the code throwing the exception above:
                } catch (java.lang.Exception e) {
                    System.err
                            .println("There isContinue_tFileFetch_1 an exception on: "
                                    + context.file_pp_financial);
                    e.printStackTrace();
                    System.out.println("\r\n");
                    isContinue_tFileFetch_1 = false;
                }

I copied the tLogCatcher into the subjob where the component is located which throws the exception.
Why does Talend e.printStackTrace and not forward it to tLogCatcher?
Anonymous
Not applicable
Author

i again try to upload pics since it worked now on another topic.
Some texts are may in german, ask for translation if needed.
0683p000009MARA.png 0683p000009MAQ2.png 0683p000009MAV6.png 0683p000009MAGq.png 0683p000009MAGd.png 0683p000009MASc.png
borke02
Contributor III
Contributor III

Hi Kaspatoo,
how do you pass the content from tLogCatcher to your sub job? Maybe you forgot to activate the checkbox "Transmit whole context" on tRunJob component?
Does a tLogRow catch the java exception when you put it between tLogCatcher and tRunJob?
Regards,
Frank
Anonymous
Not applicable
Author

hi all,

File is Valid

I guess you're validate some data (with xsd validation ?).
to catch error from those component I think (if i have well understand your request) you have to use 'runf if' trigger and propagate in a tWarn or tDie (if you want to stop the process).
If you're using on subjob error or on component error it doesn't work because it's not an error about component but data.
hope I'm clear enought & hope it helps
regards
laurent
Anonymous
Not applicable
Author

Hey,
- yes, XSD validation
- I do not transmitting whole context, but thats ok due to manuel transmitting of single parameters.
i mean when errors appear (by wrong/ missing data) the console shows red colored outputs and sometimes stacktraces from java exceptions (eg when my webserver is not available).
As I understand you now, these are no unhandled java exceptions but just their messages and stack traces after they were handled by the components and set for output by also these components. Thats why tLogCatcher has not been triggered, theres no unhandled exception.
Catching the handled erros by components I have to use run-if (which i still do for manual logging).
If I am right the "problem" then is, how to influence the outputs done automatically in console.