[Webtest] NPE while building the file

Raghavan, Sankara Narayanan (Cognizant) webtest@lists.canoo.com
Fri, 21 May 2004 14:20:09 +0530


This is a multi-part message in MIME format.

------_=_NextPart_001_01C43F10.9F57E973
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C43F10.9F57E973"


------_=_NextPart_002_01C43F10.9F57E973
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello:

The following exception is raised when trying to build the test.xml

 <<test.xml>>=20
C:\ToolEvaluation\CanooWebtest\Webtest\doc\samples>ant -buildfile =
test.xml
Buildfile: test.xml

main:
 [testSpec] ERROR (Step.java:333) - Cannot handle unexpected exception =
in step I
nvokePage at =
C:\ToolEvaluation\CanooWebtest\Webtest\doc\samples\test.xml:22:  wi
th (stepId=3D"get Login Page", url=3D"us/security/index.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:269)
 [testSpec]     at org.apache.tools.ant.Task.perform(Task.java:364)
 [testSpec]     at org.apache.tools.ant.Target.execute(Target.java:301)
 [testSpec]     at =
org.apache.tools.ant.Target.performTasks(Target.java:328)
 [testSpec]     at =
org.apache.tools.ant.Project.executeTarget(Project.java:1215)

 [testSpec]     at =
org.apache.tools.ant.Project.executeTargets(Project.java:1063
)
 [testSpec]     at org.apache.tools.ant.Main.runBuild(Main.java:632)
 [testSpec]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
 [testSpec]     at =
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
 [testSpec]     at =
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

BUILD FAILED
C:\ToolEvaluation\CanooWebtest\Webtest\doc\samples\test.xml:13: Test =
failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException: =
Unexpected ex
ception caught: java.lang.NullPointerException, Step: InvokePage at =
C:\ToolEvalu
ation\CanooWebtest\Webtest\doc\samples\test.xml:22:  with (stepId=3D"get =
Login Pag
e", url=3D"us/security/index.html", =
stepType=3D"invoke")com.canoo.webtest.engine.Ste
pExecutionException: Unexpected exception caught: =
java.lang.NullPointerException
, Step: InvokePage at =
C:\ToolEvaluation\CanooWebtest\Webtest\doc\samples\test.xm
l:22:  with (stepId=3D"get Login Page", url=3D"us/security/index.html", =
stepType=3D"in
voke")
        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:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at =
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)


Total time: 20 seconds

------_=_NextPart_002_01C43F10.9F57E973
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.0.6487.1">
<TITLE>NPE while building the file</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

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

<P><FONT SIZE=3D2 FACE=3D"Arial">The following exception is raised when =
trying to build the test.xml</FONT>
</P>

<P><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
&lt;&lt;test.xml&gt;&gt; </FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">C:\ToolEvaluation\CanooWebtest\Webtest\doc\samples&gt;ant =
-buildfile test.xml</FONT>

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

<P><FONT SIZE=3D2 FACE=3D"Arial">main:</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 =
C:\ToolEvaluation\CanooWebtest\Webtest\doc\samples\test.xml:22:&nbsp; =
wi</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">th (stepId=3D&quot;get Login =
Page&quot;, url=3D&quot;us/security/index.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:269)</FONT>

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

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

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

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

<P><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;[testSpec]&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.Project.executeTargets(Project.java:1063</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:632)</FONT>

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

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

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

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

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">C:\ToolEvaluation\CanooWebtest\Webtest\doc\samples\test.xm=
l:13: 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 C:\ToolEvalu</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">ation\CanooWebtest\Webtest\doc\samples\test.xml:22:&nbsp; =
with (stepId=3D&quot;get Login Pag</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">e&quot;, =
url=3D&quot;us/security/index.html&quot;, =
stepType=3D&quot;invoke&quot;)com.canoo.webtest.engine.Ste</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">pExecutionException: Unexpected =
exception caught: java.lang.NullPointerException</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">, Step: InvokePage at =
C:\ToolEvaluation\CanooWebtest\Webtest\doc\samples\test.xm</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">l:22:&nbsp; with (stepId=3D&quot;get =
Login Page&quot;, url=3D&quot;us/security/index.html&quot;, =
stepType=3D&quot;in</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">voke&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:269)</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:364)</FONT>

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

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

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

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

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

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

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)</FONT>

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

<P><FONT SIZE=3D2 FACE=3D"Arial">Total time: 20 seconds</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_002_01C43F10.9F57E973--

------_=_NextPart_001_01C43F10.9F57E973
Content-Type: text/xml;
	name="test.xml"
Content-Transfer-Encoding: base64
Content-Description: test.xml
Content-Disposition: attachment;
	filename="test.xml"

PHByb2plY3QgbmFtZT0iU2ltcGxlVGVzdCIgYmFzZWRpcj0iLiIgZGVmYXVsdD0ibWFpbiI+DQoN
Cjxwcm9wZXJ0eSBuYW1lPSJiYXNlLmRpciIgdmFsdWU9IiR7YmFzZWRpcn0iLz4NCjxwcm9wZXJ0
eSBuYW1lPSJ3ZWJ0ZXN0LmhvbWUiIHZhbHVlPSIke2Jhc2UuZGlyfS8uLi8uLiIvPg0KDQo8dGFz
a2RlZiBmaWxlPSIke3dlYnRlc3QuaG9tZX0vd2VidGVzdFRhc2tkZWZzLnByb3BlcnRpZXMiPg0K
PGNsYXNzcGF0aD4NCjxmaWxlc2V0IGRpcj0iJHt3ZWJ0ZXN0LmhvbWV9IiBpbmNsdWRlcz0iKiov
bGliLyouamFyIi8+DQo8L2NsYXNzcGF0aD4NCjwvdGFza2RlZj4NCg0KPHRhcmdldCBuYW1lPSJt
YWluIj4NCjx0ZXN0U3BlYyBuYW1lPSJteVRlc3QiPg0KPGNvbmZpZyANCmhvc3Q9ImhlbHAueWFo
b28uY29tIg0KcG9ydD0iODAiDQpwcm90b2NvbD0iaHR0cCINCmJhc2VwYXRoPSJoZWxwIiAvPg0K
PHN0ZXBzPg0KPGludm9rZSANCnN0ZXBpZD0iZ2V0IExvZ2luIFBhZ2UiDQp1cmw9InVzL3NlY3Vy
aXR5L2luZGV4Lmh0bWwiIC8+DQo8dmVyaWZ5dGl0bGUgDQpzdGVwaWQ9IndlIHNob3VsZCBzZWUg
dGhlIGxvZ2luIHRpdGxlIg0KdGV4dD0iTG9naW4gUGFnZSIgLz4NCjwvc3RlcHM+DQo8L3Rlc3RT
cGVjPg0KPC90YXJnZXQ+DQo8L3Byb2plY3Q+


------_=_NextPart_001_01C43F10.9F57E973
Content-Type: text/plain;
	name="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="InterScan_Disclaimer.txt"

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

		Visit us at http://www.cognizant.com

------_=_NextPart_001_01C43F10.9F57E973--