Hi,

I'm new to debugging stax errors, so please bear with me.

In a  a script called "stax-script.xml', there is a function
 "closeSessionOutput". This has a required argument "scriptFileName".

Intermittently, "closeSessionOutput" is getting called and "scriptFileName"
is given a null value.  This subsequently causes a crash.

How can I determine who is the caller?

Tks,
-T


For completeness, here is the function definition:

   <function name="closeSessionOutput" scope="local">
        <function-prolog>
            When an CompareOutput command is encountered in the script, it
sends
            a #OutputToTextFile(Close) to all application instances
        </function-prolog>
        <function-single-arg>
            <function-required-arg name="scriptFileName"/>
        </function-single-arg>
        <sequence>
            <script>
                cmdResult =
gCurrentRootScriptContextMgr.sessionManager.getSessionNameList()
            </script>
            <call function="'handleCmdResult'">cmdResult</call>
            <script>
                sessionsList = cmdResult.result[0]
                appInstancesLen = len(sessionsList) - 1
            </script>
            <if expr="appInstancesLen > 0">
                <sequence>
                    <loop var="ii" from="0" to="appInstancesLen" by="1">
                        <sequence>
                            <script>
                                nextAppToCheck = sessionsList[ii]
                                onSessionCmd = "#OnSession(%s)" %
nextAppToCheck
                                outputToFileClose =
"#OutputToTextFile(CLOSE)"
                            </script>
                            <call
function="'doNextScriptCommand'">onSessionCmd, scriptFileName</call>
                            <call
function="'doNextScriptCommand'">outputToFileClose, scriptFileName</call>
                        </sequence>
                    </loop>
                    <call function="'logSTAXMsgVerbose'">"Clearing
Application Instances"</call>
                </sequence>
            </if>
        </sequence>
    </function>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to