SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Get error code/messages from failed applicatio

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Get error code/messages from failed applicatio
Author Message
Gary Teh



Joined: 21 Jun 2000
Posts: 3

Post Get error code/messages from failed application Reply with quote

Can i trap the error message or the return parameters from application that failed to run as schedule. For example, i used 24X7 to run an Visual Basic application. The application was supposed to get various data from the SQL server, perform some computation and then update the SQL server. Due to server failure. I've got an error dialogue box which then stopped the entire job dependencies. If i click 'OK' after reading the dialogue box, the following job will continue and 24X7 does not capture the error in the log.

Is there a way to trap the error so that error evaluation can be done?
Is there a way to get rid the dialogue box?

Please advise.

Regards,

Gary

Wed Jun 21, 2000 8:14 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6509

Post Re: Get error code/messages from failed applicatio Reply with quote

From 24x7 point of view your application runs just fine if it does not return an error (process exit code) code to the operation system, 24x7 can capture that error code (see ProcessGetExitCode statement).

You can also update your application to write errors to some log file that can be later scaned for error messages (see example scripts in 24x7 on-line help and Example Jobs database).

You can also setup job timeout (must run either as a syncronious job or from a JAL script using RunAndWait statement) so that 24x7 will forcedly terminate your program in case if it timed out.

Another option is building a JAL script that will monitor your program execution, search for dialog boxes and close them if found (see WindowFind, WindowGetActive and other Window and Process statements).

: Can i trap the error message or the return parameters from application that
: failed to run as schedule. For example, i used 24X7 to run an Visual Basic
: application. The application was supposed to get various data from the SQL
: server, perform some computation and then update the SQL server. Due to
: server failure. I've got an error dialogue box which then stopped the
: entire job dependencies. If i click 'OK' after reading the dialogue box,
: the following job will continue and 24X7 does not capture the error in the
: log.

: Is there a way to trap the error so that error evaluation can be done?
: Is there a way to get rid the dialogue box?

: Please advise.

: Regards,

: Gary

Wed Jun 21, 2000 10:32 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.