[ptt-users] Re: NPE
in ScriptRunner.methodFromCall(ScriptRunner.java:239)
Lars Huttar
lars_huttar at sil.org
Mon Oct 1 17:29:21 PDT 2007
On 9/28/2007 5:45 PM, Olivier Dony wrote:
> 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.argumentsFormCallScript(ScriptRunner.java:488)
>>
> Could it be that the ScriptRunner cannot access your script file?
> Maybe something to do with the way the file path is written?
Apparently you were right. I replaced the "C:/..." syntax with "../../",
and those errors went away.
Lars
More information about the Users
mailing list