tLogCatcher and tSendMail

One Star

tLogCatcher and tSendMail

Hi,
When there is an error, I wish to send a mail with informations from the tLogCatcher.
But data are null
date : nullpid : nullroot pid : nullfather pid : nullproject : nulljob : nullcontext : nullpriority : nulltype : nullorigin : nullmessage : nullcode : null

In fact my source, row1, is initialized after the mail. The tLogRow works well.
The code generated
String message_tSendMail_1 = "Unne erreur s'est produite lors de l'alimentation de l'entrepôt de données"
+ "date : "
+ row1.moment
+ "pid : "
+ row1.pid
+ "root pid : "
+ row1.root_pid
+ "father pid : "
+ row1.father_pid
+ "project : "
+ row1.project
+ "job : "
+ row1.job
+ "context : "
+ row1.context
+ "priority : "
+ row1.priority
+ "type : "
+ row1.type
+ "origin : "
+ row1.origin
+ "message : "
+ row1.message
+ "code : "
+ row1.code;
java.util.List<java.util.Map<String, String>> headers_tSendMail_1 = new java.util.ArrayList<java.util.Map<String, String>>();
java.util.List<String> attachments_tSendMail_1 = new java.util.ArrayList<String>();
/**
* stop
*/
/**
* start
*/
ok_Hash.put("tLogRow_1", false);
start_Hash.put("tLogRow_1", java.util.Calendar.getInstance()
.getTimeInMillis());
currentComponent = "tLogRow_1";
// /////////////////////
final String OUTPUT_FIELD_SEPARATOR_tLogRow_1 = "|";
java.io.PrintStream consoleOut_tLogRow_1 = null;
int nb_line_tLogRow_1 = 0;
// /////////////////////
/**
* stop
*/
/**
* start
*/
ok_Hash.put("tLogCatcher_1", false);
start_Hash.put("tLogCatcher_1", java.util.Calendar.getInstance()
.getTimeInMillis());
currentComponent = "tLogCatcher_1";
for (LogCatcherUtils.LogCatcherMessage lcm : tLogCatcher_1
.getMessages()) {
row1.type = lcm.getType();
row1.origin = (lcm.getOrigin() == null
|| lcm.getOrigin().length() < 1 ? null : lcm
.getOrigin());
row1.priority = lcm.getPriority();
row1.message = lcm.getMessage();
row1.code = lcm.getCode();
row1.moment = java.util.Calendar.getInstance().getTime();
row1.pid = pid;
row1.root_pid = rootPid;
row1.father_pid = fatherPid;
row1.project = projectName;
row1.job = jobName;
row1.context = contextStr;
One Star

Re: tLogCatcher and tSendMail

1690