Hello,
I am performing my execution using the command line, not STAXMonitor. When
there is python error [example shown below], command line just terminates
with the status "Terminated". User would have no idea why it is terminated.
Is there a way to capture the below errors and write into a log file?
20100120-08:11:40 STAXImportError signal raised. Terminating job.
===== XML Information =====
File: D:/WTASDemo/TDLs/TestAgentData-31.xml, Machine: local
com.ibm.staf.service.stax.STAXPythonCompileException:
File: D:/WTASDemo/TDLs/TestAgentData-31.xml, Machine: L-4000913.wipro.com
Line 30: Error in element type "script".
Python code compile failed for:
if
from SMH_obj_map import *
import re
lnk = linkArray[i]
lnk = lnk.rstrip()
lnk = str(lnk)
line = lnk
words = str(line).split()
logMessageToSTAXMon("words ->" + str(words))
if( re.search("\d",str(words))):
val= words[3]
val =re.sub("^\d+","",val)
val =re.sub("\(","",val)
val =re.sub("\)","",val)
logMessageToSTAXMon("val ->" + str(val))
val1 = str(val)
logMessageToSTAXMon("val1 is ->" + str(val1))
logMessageToSTAXMon("line ->" + str(lnk))
setattr(nicagentsblade1_dr,"Name",lnk)
Traceback (innermost last):
(no code object) at line 0
SyntaxError: ('invalid syntax', ('<string>', 1, 3, 'if'))
===== Call Stack for STAX Thread 1 =====
[
function: initializeTestCase (Line: 17, File:
D:\WTASDemo\Config\Launch_Framework.xml, Machine: L-4000913.wipro.com)
sequence: 1/14 (Line: 28, File: D:\WTASDemo\Config\Launch_Framework.xml,
Machine: L-4000913.wipro.com)
]
--
Regards,
Maneesh
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users