Re: [staf-users] Staf Stax Python Code Indentation

2009-08-18 Thread Sangram Bakshi
Thanks David. Regards Sangram On Tue, Aug 18, 2009 at 7:20 PM, David Bender wrote: > > Python code uses the indentation to denote code blocks, and a tab character > is not the same as 4 spaces (even though when you view the file in an editor > they may appear equivalent). > > The recommendatio

Re: [staf-users] Namespace error display

2009-08-18 Thread Sharon Lucas
Eric, First, thanks for contributing back to the STAF project. Yes, the patch file procedure for submitting changes is current (at http://staf.sourceforge.net/contributions.php). Once you have approval for the Statement of Origin, you can follow that procedure to submit a patch for the Namesp

Re: [staf-users] The Urgent Issues: Can't terminate the STAX Job

2009-08-18 Thread Sharon Lucas
Wiston, No, you cannot terminate a particular thread for a STAX job. The root reason for these jobs is clear from the STAX JVM log file you provided. The NullPointerException in STAXSTAFCommandAction.java is causing the issue. Once this NPE occurs, it stops the execution of that thread and t

Re: [staf-users] command run sucessfully in cmd(windows) but failed with STAX XML

2009-08-18 Thread David Bender
First, is there a reason you are using instead of ? The recommedation is to use for PROCESS START requests. What is the exact error you get? Does the STAX job start, or do you get an error when submitting the job? If the job starts and the process is not starting, then add the following to

Re: [staf-users] Staf Stax Python Code Indentation

2009-08-18 Thread David Bender
Python code uses the indentation to denote code blocks, and a tab character is not the same as 4 spaces (even though when you view the file in an editor they may appear equivalent). The recommendation is to always use spaces in your STAX jobs. Most text/xml editors have settings to allow you t

Re: [staf-users] Staf Stax Python Code Indentation

2009-08-18 Thread Sangram Bakshi
Hi , I observe the code compiles with four spaces after a "if" or "for " , but it fails to compile if by mistake we give a "tab"(equivalent to four spaces). I am able to work fine , my code compiles fine. Do suggest any other tips for indentation. Regards On Tue, Aug 18, 2009 at 5:12 PM, San

[staf-users] command run sucessfully in cmd(windows) but failed with STAX XML

2009-08-18 Thread Shiying Huang
hi, all I am trying to invoke a batch file on a Virtual machine which is name flamewinxp32 using this command line C:\>staf flamewinxp32 process start shell command "cd C:\flame\main\qe\automation\bin & runworkflow.bat --input ..\testfiles\fxg\ native ..\workflow\dclark_FXG_FLA_FXG.xml & C:\pyth

[staf-users] Staf Stax Python Code Indentation

2009-08-18 Thread Sangram Bakshi
Hi , I was coding python in staf stax job. I follow basic python indentation. For e.g: nodeList = document.getElementsByTagName("machine_name") x = nodeList.getLength() if nodeList.getLength(): nodeList = document.getElementsByTagName("machine_name") for i in range(nodeList.

Re: [staf-users] The Urgent Issues: Can't terminate the STAX Job

2009-08-18 Thread Li Wiston
Thanks david, For detail info you requst list as follows, STAF Version 3.3.4 STAX Version 3.3.7 But, i can't find out the root reason even if go through these info, could you give me some help? Ask again, can i terminate the thread for the certain job ? Thanks in advance, -Wiston. 1, [ad...@b2b