STAXPythonExceptionError was thrown when database connection timeout occured in the python file. I just want to handle this exception in the stax insted of python itself.
Also what is the common exception to handle all kinds of exception in stax and how to know what exception exactly it was raising.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
STAXPythonEvaluationError signal raised. Terminating job.
===== XML Information =====
File: C:\Users\admin\Desktop\cronid.xml, Machine: local://local
Line 35: Error in element type "script".
===== Python Error Information =====
com.ibm.staf.service.stax.STAXPythonEvaluationException:
Traceback (most recent call last):
File "<pyExec string="">", line 2, in <module>
TypeError: unicode indices must be integers
You may override a STAX default signalhandler for a signal (such as a STAXPythonEvaluationError signal) by providing your own signalhandler. See section "How to Perform Cleanup Before Job Termination" for some examples of ways to handle a STAXPythonEvaluationError signal in the STAX User's Guide at http://staf.sourceforge.net/current/STAX/staxug.html#Header_CleanupExamples. The third example shows how you can provide a signal handler for a STAXPythonEvaluationError signal that throws a STAX Exception and then use <try>/<catch> elements to handle the exception.
STAXPythonEvaluationError signal raised. Terminating job.
===== XML Information =====
File: C:\Users\admin\Desktop\cronid.xml, Machine: local://local
Line 35: Error in element type "script".
===== Python Error Information =====
com.ibm.staf.service.stax.STAXPythonEvaluationException:
Traceback (most recent call last):
File "<pyExec string="">", line 2, in <module>
TypeError: unicode indices must be integers
===== Call Stack for STAX Thread 1 =====
function: unregisterCronID (Line: 4, File: C:\Users\admin\Desktop\cronid.xml, Machine: local://local)
sequence: 3/3 (Line: 24, File: C:\Users\admin\Desktop\cronid.xml, Machine: local://local)
finally (Line: 64, File: C:\Users\admin\Desktop\cronid.xml, Machine: local://local)
try (Line: 31, File: C:\Users\admin\Desktop\cronid.xml, Machine: local://local)
sequence: 2/3 (Line: 32, File: C:\Users\admin\Desktop\cronid.xml, Machine: local://local)
Last edit: Aneesh 2016-11-10
You may override a STAX default signalhandler for a signal (such as a STAXPythonEvaluationError signal) by providing your own signalhandler. See section "How to Perform Cleanup Before Job Termination" for some examples of ways to handle a STAXPythonEvaluationError signal in the STAX User's Guide at http://staf.sourceforge.net/current/STAX/staxug.html#Header_CleanupExamples. The third example shows how you can provide a signal handler for a STAXPythonEvaluationError signal that throws a STAX Exception and then use <try>/<catch> elements to handle the exception.
For more information on STAX signals, see section "Signals" in the STAX User's Guide at http://staf.sourceforge.net/current/STAX/staxug.html#Header_Stax_Signals.
Note that STAX signals are different from STAX Exceptions. For more information on STAX Exceptions see the "Exceptions" section in the STAX User's Guide at http://staf.sourceforge.net/current/STAX/staxug.html#Header_Stax_Exceptions