[ptt-users] Re: NPE in ScriptRunner.methodFromCall(ScriptRunner.java:239)

Olivier Dony olivier.dony at denali.be
Fri Sep 28 15:45:31 PDT 2007


On Sep 29, 2007, at 12:25 AM, Lars Huttar wrote:

> Well, that particular error was apparently caused by the fact that  
> I was missing a langtype attribute on my <run> element:
>                                                          <run  
> module="ethnunit" name="test1" testclass="HTTPExample"  
> method="runtest" />
>
> After supplying langtype="jython", that particular NPE goes away.
> Hopefully that could be fixed to tell the user they're missing a  
> langtype attribute, if it is indeed required.
>
> Now I get a different set of errors:
>
> java.lang.NullPointerException
>    at java.io.FileInputStream.<init>(Unknown Source)
>    at java.io.FileInputStream.<init>(Unknown Source)
>    at java.io.FileReader.<init>(Unknown Source)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.argument 
> sFormCallScript(ScriptRunner.java:488)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.argument 
> sFromCall(ScriptRunner.java:421)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.setupMet 
> hodForTest(ScriptRunner.java:225)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.setMetho 
> ds(ScriptRunner.java:213)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.<init> 
> (ScriptRunner.java:192)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.TestusecaseRunner.run 
> OneTime(TestusecaseRunner.java:381)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner.ru 
> nFunctionaltest(TestscenarioRunner.java:288)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner.ac 
> cess$000(TestscenarioRunner.java:91)
>    at  
> com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner 
> $FunctionalTest.run(TestscenarioRunner.java:272)

Could it be that the ScriptRunner cannot access your script file?  
Maybe something to do with the way the file path is written?


> On 9/28/2007 5:05 PM, Lars Huttar wrote:
>> Hello,
>> I'm really wearing out this list, aren't I?  :-)
>>

I'm sure people will be glad to find your posts when they go deeper  
within TM5 and stumble on the same issues.

Anyway, I'm off for the week-end ;-)


__
Olivier Dony

Denali s.a., "Bridging the gap between Business and IT"
Rue de Clairvaux 8, B-1348 Louvain-la-Neuve, Belgium
Office: +32 10 43 99 51  Fax: +32 10 43 99 52
www.denali.be

Legal Notice: this message may contain confidential and/or privileged  
information. If you are not the addressee or authorized to receive  
this for the addressee, you must not use, copy, disclose or take any  
action based on this message or any information herein. If you have  
received this message by mistake, please advise the sender  
immediately by return e-mail and delete this message from your  
system. Thank you for your cooperation.




More information about the Users mailing list