Hi,
This is most likely a communication problem, where the remote machine
running the process cannot communicate back to the STAX service machine to
notify it that the process has completed. Note that when you run a
<process> in a STAX job, the process is started asynchronously, while your
STAF atlantis10.in.ibm.com PROCESS START request is running synchronously.
The following forum thread describes the communication problem and ways to
debug it::
http://sourceforge.net/projects/staf/forums/forum/104046/topic/1937754?message=4774490
"STAX process hang: not getting return codes?"
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
From:
Ahmed Mostafa <eng.ahmed2...@gmail.com>
To:
STAF <staf-users@lists.sourceforge.net>
Cc:
Nikunja Bihari Das <nikun...@in.ibm.com>
Date:
01/20/2010 07:54 AM
Subject:
[staf-users] STAX <process> hangs
Hello,
I'm trying to run the following <process> element but it hangs:
<script>
target = 'atlantis10.in.ibm.com'
command = '/opt/IBM/db2/V9.7_IVT/bin/db2ilist'
</script>
<message log='1' level='"trace"'>
'staf %s PROCESS Start Shell Command %s Wait SameConsole ReturnStdOut
ReturnStdErr' % \
( target, command )
</message>
<process>
<location>target</location>
<command mode='"shell"'>command</command>
<console use='"same"'/>
<returnstdout/>
</process>
<message>
'Process element completed!'
</message>
Note that its equivalent STAF command below runs successfully:
C:\>staf atlantis10.in.ibm.com PROCESS Start Shell Command
/opt/IBM/db2/V9.7_IVT/bin/db2ilist Wait SameConsole ReturnStdOut
ReturnStdErr
{
Return Code: 0
Key : <None>
Files : [
{
Return Code: 0
Data : kavyarao
nsequtf
venkat
abaky
nseqlee
}
{
Return Code: 0
Data :
}
]
}
I don't see errors in the JVM log. What can be the problem?
Thanks
--
Ahmed Mostafa Abdel-Baky
Associate Software Engineer
DB2 NSE Support
Cairo Technology Development Center
IBM Egypt
Mobile: 0110887370
Office: +202-35361459
E-mail: ab...@eg.ibm.com
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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