I'm not sure why the STAX job would hang, but note that you are specifying 
the duration for the <timer> element as "500", which is 500 milliseconds, 
or 1/2 second.  I assume that your java process doesn't complete within 
that short amount of time, so can you try increasing it?  Maybe you meant 
to use "5m" (5 minutes) instead of  "500". 
 
Thanks, 
David 

David Bender 
STAF/STAX Development 
IBM Software Group, WPLC 
 
11501 Burnet Rd. 
Bldg. 903-5B002 
Austin, TX 78758-3400 
 
Phone (T/L): 1-512-286-5315 (363-5315) 
ITN: 23635315 
Email: bda...@us.ibm.com 
 





"Shahid" <sha...@acmet.com> 
08/04/2009 06:45 AM
Please respond to
sha...@acmet.com


To
<staf-users@lists.sourceforge.net>
cc

Subject
[staf-users] STAX Job gets hanged







While executing the STAX Job, it gets hanged. Snap for the job log has 
been
attached with this mail.

Reference: STAXJobError.JPG.

Please check it.

I have used following process command in STAXJob

<Snip>

<timer duration="500">

<process>

<location>MachineName</location>

<command mode ="'shell'">'java'</command>

<parms>' -jar %s "%s" "%s" "%s" %s "%s"' %(ComparisonTool, BaseFilePath,
CurrentFilePath, DiffFilePath, NumberOfLinesToBeIgnoredWhileComparing,
StringForWhichLinesToBeIgnor) </pams>

<workdir>LocalWorkingDirectory</workdir>

</process>

</timer>

<End>


In case of removing the time command, job is executed successfully. After
removing the timer command, the above code will be: 

<Snip>

<process>

<location>MachineName</location>

<command mode ="'shell'">'java'</command>

<parms>' -jar %s "%s" "%s" "%s" %s "%s"' %(ComparisonTool, BaseFilePath,
CurrentFilePath, DiffFilePath, NumberOfLinesToBeIgnoredWhileComparing,
StringForWhichLinesToBeIgnor) </pams>

<workdir>LocalWorkingDirectory</workdir>

</process>

<End>

Why STAXJob gets hanged?

I have started execution of a jar file with above process command. Is it
possible to proceed with the next code in the STAXJob without completing 
the
execution of jar file?
 

-Thanks in advance
Mohammad Shahid Jamal
[attachment "STAXJobError.JPG" deleted by David Bender/Austin/IBM] 
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
30-Day 
trial. Simplify your report design, integration and deployment - and focus 
on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to