[Webtest] ERROR (Step.java:333) - Cannot handle unexpected exception in step InvokePage at with (stepId="get local file",

Rajesh Nair webtest@lists.canoo.com
Mon, 19 Apr 2004 12:14:28 -0700


This is a multi-part message in MIME format.

------_=_NextPart_001_01C42642.891EBA35
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I just installed webtest [build 441] and was trying to run installTest. =
But its throwing following exception. [I am using ant 1.5.4]. Could =
anyone tell me what's wrong here?. Appreciate the help in advance.

Thx

Rajesh


C:\webtest\doc\samples>ant -buildfile installTest.xml
Buildfile: installTest.xml

checkANT:

mayPrintANTError:

checkWebTest:
     [echo] base dir is C:\webtest\doc\samples
 [testSpec] ERROR (Step.java:333) - Cannot handle unexpected exception =
in step I
nvokePage at  with (stepId=3D"get local file", =
url=3D"C:\webtest\doc\samples/testfil
e.html", stepType=3D"invoke")
 [testSpec] java.lang.NullPointerException
 [testSpec]     at =
com.canoo.webtest.engine.Context.setLastResponseForStep(Conte
xt.java:119)
 [testSpec]     at =
com.canoo.webtest.steps.request.Target.protectedGoto(Target.j
ava:119)
 [testSpec]     at =
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java
:153)
 [testSpec]     at =
com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePa
ge.java:37)
 [testSpec]     at com.canoo.webtest.steps.Step.execute(Step.java:99)
 [testSpec]     at =
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
 [testSpec]     at =
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpeci
ficationTask.java:68)
 [testSpec]     at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:193)
 [testSpec]     at org.apache.tools.ant.Task.perform(Task.java:341)
 [testSpec]     at org.apache.tools.ant.Target.execute(Target.java:309)
 [testSpec]     at =
org.apache.tools.ant.Target.performTasks(Target.java:336)
 [testSpec]     at =
org.apache.tools.ant.Project.executeTarget(Project.java:1339)

 [testSpec]     at =
org.apache.tools.ant.Project.executeTargets(Project.java:1255
)
 [testSpec]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
 [testSpec]     at org.apache.tools.ant.Main.start(Main.java:196)
 [testSpec]     at org.apache.tools.ant.Main.main(Main.java:235)

BUILD FAILED
file:C:/webtest/doc/samples/installTest.xml:10: Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException: =
Unexpected ex
ception caught: java.lang.NullPointerException, Step: InvokePage at  =
with (stepI
d=3D"get local file", url=3D"C:\webtest\doc\samples/testfile.html", =
stepType=3D"invoke
")com.canoo.webtest.engine.StepExecutionException: Unexpected exception =
caught:
java.lang.NullPointerException, Step: InvokePage at  with (stepId=3D"get =
local fil
e", url=3D"C:\webtest\doc\samples/testfile.html", stepType=3D"invoke")
        at =
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:334)

        at com.canoo.webtest.steps.Step.execute(Step.java:101)
        at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
        at =
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecification
Task.java:68)
        at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at =
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

------_=_NextPart_001_01C42642.891EBA35
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.6944.0">
<TITLE> ERROR (Step.java:333) - Cannot handle unexpected exception in =
step InvokePage at  with (stepId=3D&quot;get local file&quot;, </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I just installed webtest [build 441] =
and was trying to run installTest. But its throwing following exception. =
[I am using ant 1.5.4]. Could anyone tell me what's wrong here?. =
Appreciate the help in advance.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thx</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Rajesh</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">C:\webtest\doc\samples&gt;ant =
-buildfile installTest.xml</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Buildfile: installTest.xml</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">checkANT:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">mayPrintANTError:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">checkWebTest:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp; [echo] base =
dir is C:\webtest\doc\samples</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;[testSpec] ERROR (Step.java:333) =
- Cannot handle unexpected exception in step I</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">nvokePage at&nbsp; with =
(stepId=3D&quot;get local file&quot;, =
url=3D&quot;C:\webtest\doc\samples/testfil</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">e.html&quot;, =
stepType=3D&quot;invoke&quot;)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;[testSpec] =
java.lang.NullPointerException</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.engine.Context.setLastResponseForStep(Conte</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">xt.java:119)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.steps.request.Target.protectedGoto(Target.j</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">ava:119)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">:153)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePa</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">ge.java:37)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.steps.Step.execute(Step.java:99)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpeci</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">ficationTask.java:68)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">va:193)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Task.perform(Task.java:341)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Target.execute(Target.java:309)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Target.performTasks(Target.java:336)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Project.executeTarget(Project.java:1339)</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Project.executeTargets(Project.java:1255</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Main.runBuild(Main.java:609)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Main.start(Main.java:196)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Main.main(Main.java:235)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">BUILD FAILED</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">file:C:/webtest/doc/samples/installTest.xml:10: Test =
failed.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Exception raised: =
com.canoo.webtest.engine.StepExecutionException: Unexpected ex</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">ception caught: =
java.lang.NullPointerException, Step: InvokePage at&nbsp; with =
(stepI</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">d=3D&quot;get local file&quot;, =
url=3D&quot;C:\webtest\doc\samples/testfile.html&quot;, =
stepType=3D&quot;invoke</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&quot;)com.canoo.webtest.engine.StepExecutionException: =
Unexpected exception caught:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">java.lang.NullPointerException, Step: =
InvokePage at&nbsp; with (stepId=3D&quot;get local fil</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">e&quot;, =
url=3D&quot;C:\webtest\doc\samples/testfile.html&quot;, =
stepType=3D&quot;invoke&quot;)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:334)</FO=
NT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.steps.Step.execute(Step.java:101)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecification</FO=
NT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Task.java:68)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)</FON=
T>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Task.perform(Task.java:341)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Target.execute(Target.java:309)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Target.performTasks(Target.java:336)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Project.executeTarget(Project.java:1339)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Project.executeTargets(Project.java:1255)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Main.runBuild(Main.java:609)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Main.start(Main.java:196)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Main.main(Main.java:235)</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C42642.891EBA35--