I fail to run multiple STAX sub-jobs via the <job> element inside a
<paralleliterate> element, and when I try to close the STAX Monitor windows
it says:
An error was encountered while attempting to release the job, rc=48 result =
23.
Once I click OK, I find them all appear in the main STAX Monitor window for
a while then they disappear and the main job is continued.
Here are my STAX job files:
*Temp.xml:*
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE stax SYSTEM "stax.dtd">
>
> <stax>
> <defaultcall function="Main"/>
>
> <function name="Main">
> <sequence>
> <sequence>
> <paralleliterate var='i' in='[1, 2, 3, 4, 5]'>
> <job clearlogs='"enabled"'
> monitor='1'
> name='"Job%s" % ( i )'
> pythonoutput='"JobUserLogAndMsg"'
> pythonloglevel='"trace2"'>
> <job-file>path.dirname( STAXJobXMLFile ) +
> R'\TempJob.xml'</job-file>
> <job-function-args eval='1'>i</job-function-args>
> </job>
> </paralleliterate>
>
> <message>
> 'Parallel jobs ended'
> </message>
> </sequence>
> </sequence>
> </function>
> </stax>
>
*TempJob.xml:*
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE stax SYSTEM "stax.dtd">
>
> <stax>
> <defaultcall function="TempJob"/>
>
> <function name="TempJob">
> <function-single-arg>
> <function-required-arg name='i'></function-required-arg>
> </function-single-arg>
> <sequence>
> <message if='vars().has_key( "debug" ) and debug != 0'
> level='"trace"' log='1'>
> 'i = %s' % ( i )
> </message>
> </sequence>
> </function>
> </stax>
>
What may be causing this problem?
--
Ahmed Mostafa
0123919750
[EMAIL PROTECTED]
Software Engineer
IBM Egypt, Cairo Technology Development Center
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users