One Star

[resolved] catch error log from tDie "and" JAVA exception

Hi,
Actually new to TOS for DI...
I need to catch errors from a job and output them into a delimited file.
I've got 2 different error inputs:
- a tDie with my own error message ("source connection unavailable")
- a JAVA exception generated by my tAS400Connection
I have inserted a tLogCatcher retrieving JAVA exceptions and tDies (checkboxes)
Then, I connected it to a tMap to retrieve only moment, code, origin and message.
And finally, a tLogRow to visualize my log.
On run, i get my lines correctly:
2015-03-05 10:39:25|1|tDie_1|source connection unavailable
2015-03-05 10:39:25|1|tAS400Connection_1|java.sql.SQLException:The application server rejected the connection. (User ID is not known.:CABBAGE)
Now, i replace my tLogRow by a tFileOutputDelimited to write my log instead.
On run, i can only get my JAVA exception:
2015-03-05 10:43:19;tAS400Connection_1;java.sql.SQLException:The application server rejected the connection. (User ID is not known.:CABBAGE)
If I uncheck JAVA exceptions into the tLogCatcher, I'm finally able to get my tDie:
2015-03-05 10:44:36;tDie_1;source connection unavailable
Question is : why can't I write both of them into the file? Seems strange to me...
Thanks by advance for the time spent on my issue...
PS : Talend Open Studio for Data Integration (5.6.1.20141207_1530)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: [resolved] catch error log from tDie "and" JAVA exception

Hello, are you sure you checked the 'Append' option on your tFileOutputDelimited ?
2 REPLIES

Re: [resolved] catch error log from tDie "and" JAVA exception

Hello, are you sure you checked the 'Append' option on your tFileOutputDelimited ?
One Star

Re: [resolved] catch error log from tDie "and" JAVA exception

Well spotted...
Didn't know this option could cause this kind of behavior.
As a beginner, I'm still groping for the answers step by step.
You made my day. Thanks.
I set this topic as resolved...