Hi David,

also to add to my observations , the generated xml file if i try to validate
in a xml validator , it validates as correct , so it should be ok .

Regads
Sangram

On Mon, Mar 15, 2010 at 7:17 PM, David Bender <bda...@us.ibm.com> wrote:

>  The config.xml file is not formatted correctly. When I open it, the
> elements are all on a single line:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <operating_system><unix_r12><tests
> type="quickSanityTest"><prerequisitescript>update.exp</prerequisitescript><acbuildpath>/CR_80SP1/80_builds/Unix/CR16/TestFix</acbuildpath><testsuitscript>runQuickSanity.sh</testsuitscript><testdir>/testQuickSanity</testdir><testconfig>BlueExpress.tar</testconfig><reportname>BATReport</reportname></tests><machine_name>
> etr6506l3-sun66.ca.com</machine_name></unix_r12></operating_system>
>
> And when I run your parsejob.xml job with the config.xml file, I get the
> same error. If I format the config.xml file as:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <operating_system>
>   <unix_r12>
>     <tests type="quickSanityTest">
>       <prerequisitescript>update.exp</prerequisitescript>
>       <acbuildpath>/CR_80SP1/80_builds/Unix/CR16/TestFix</acbuildpath>
>       <testsuitscript>runQuickSanity.sh</testsuitscript>
>       <testdir>/testQuickSanity</testdir>
>       <testconfig>BlueExpress.tar</testconfig>
>       <reportname>BATReport</reportname>
>     </tests>
>     <machine_name>etr6506l3-sun66.ca.com</machine_name>
>   </unix_r12>
> </operating_system>
>
> Then the error no longer occurs when running parsejob.xml.
>
> Thanks,
> David
>
> ------------------------------
>   *David 
> Bender*<http://w3.ibm.com/bluepages/simpleSearch.wss?searchBy=Name&searchFor=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* <bda...@us.ibm.com>
>
> ------------------------------
>
>
> [image: Inactive hide details for Sangram Bakshi ---03/15/2010 04:59:01
> AM---Hi , I am encountering the following error :]Sangram Bakshi
> ---03/15/2010 04:59:01 AM---Hi , I am encountering the following error :
>
>
> From:
> Sangram Bakshi <san...@gmail.com>
> To:
> staf-users@lists.sourceforge.net
> Date:
> 03/15/2010 04:59 AM
> Subject:
> [staf-users] Getting attribut error "AttributeError: 'None' object has no
> attribute 'getNodeName'" on parsign a xml file.
> ------------------------------
>
>
>
> Hi ,
>
> I am encountering the following error :
>
> "AttributeError: 'None' object has no attribute 'getNodeName'" on parsing a
> xml file."
> This a new problem i am getting , never earlier got this problem .
>
> The xml file to be parsed is :
> =====================
> <?xml version="1.0" encoding="utf-8"?>
> <operating_system>
> <unix_r12>
> <tests type="quickSanityTest">
> <prerequisitescript>update.exp</prerequisitescript>
> <acbuildpath>/CR_80SP1/80_builds/Unix/CR16/TestFix</acbuildpath>
> <testsuitscript>runQuickSanity.sh</testsuitscript>
> <testdir>/testQuickSanity</testdir>
> <testconfig>BlueExpress.tar</testconfig>
> <reportname>BATReport</reportname>
> </tests>
> <machine_name>*etr6506l3-sun66.ca.com* <http://etr6506l3-sun66.ca.com/>
> </machine_name>
> </unix_r12>
> </operating_system>
> Attached is the exact file that i am using to parse:
>
> The staf job file "parsejob.xml is also attached here:
>
> I get the error :
>
> 20100315-15:09:48 STAXPythonEvaluationError signal raised. Terminating job.
>
> ===== XML Information =====
> File: C:\STAF\stax_jobs\parsejob.xml, Machine: 
> *baksa03-xp.ca.com*<http://baksa03-xp.ca.com/>
> Line 403: Error in element type "script".
> ===== Python Error Information =====
> com.ibm.staf.service.stax.STAXPythonEvaluationException:
> Traceback (innermost last):
>   File "<pyExec string>", line 157, in ?
> AttributeError: 'None' object has no attribute 'getNodeName'
>
> ===== Call Stack for STAX Thread 1 =====
> [
>   function: Main (Line: 8, File: C:\STAF\stax_jobs\parsejob.xml, Machine:
> *baksa03-xp.ca.com* <http://baksa03-xp.ca.com/>)
>   sequence: 1/31 (Line: 10, File: C:\STAF\stax_jobs\parsejob.xml, Machine:
> *baksa03-xp.ca.com* <http://baksa03-xp.ca.com/>)
>   function: parseXML (Line: 383, File: C:\STAF\stax_jobs\parsejob.xml,
> Machine: *baksa03-xp.ca.com* <http://baksa03-xp.ca.com/>)
>   sequence: 2/4 (Line: 391, File: C:\STAF\stax_jobs\parsejob.xml, Machine:
> *baksa03-xp.ca.com* <http://baksa03-xp.ca.com/>)
> ]
>
> I have validated the xml file to be valid by MSXML valid . It is valid .
>
> Now the same xml file gets read if i  Ctrl-x the following in the xml file
> :
>
> <tests type="quickSanityTest">
> <prerequisitescript>update.exp</prerequisitescript>
> <acbuildpath>/CR_80SP1/80_builds/Unix/CR16/TestFix</acbuildpath>
> <testsuitscript>runQuickSanity.sh</testsuitscript>
> <testdir>/testQuickSanity</testdir>
> <testconfig>BlueExpress.tar</testconfig>
> <reportname>BATReport</reportname>
>
> and paste it again at the same location in the xml file. The xml file then
> gets parsed through the staf job as i have attched.
>
> Please suggest , i am not understanding this problem .
>
> Regards
> Sangram
>
>
>
>
>
>
>
>
>
>  [attachment "config.xml" deleted by David Bender/Austin/IBM] [attachment
> "parsejob.xml" deleted by David Bender/Austin/IBM]
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
>
>
>

<<ecblank.gif>>

<<graycol.gif>>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to