[Webtest] Script error

Jon Poulton [kinomi] webtest@lists.canoo.com
Thu, 13 Apr 2006 12:45:05 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_002B_01C65EF8.171302A0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

One of our web developers has made some changes to our web application,
which includes moving some Javascript into separate files. For some reason
this has caused my Canoo tests to fail with an error message I have never
seen before. I do not know what the error message means, or how to diagnose
the problem further. The error from the log below reads: 

 

"ScriptException: enclosed exception was "TypeError: Cannot set property
"preventDefault" of null to
"org.mozilla.javascript.InterpretedFunction@278e83"
(http://localhost:8080/cks/scripts/jquery.js#741)".

 

I have seen a fair number of script exception problems on this mailing list,
but I've never had a problem with them before. Any help would be
appreciated.

 

..

 [testSpec] (steps.Step                          322 ) >>>> Start Step:
invoke "Get Group add Page." (7/28)

 [testSpec] (request.AbstractTargetAction        105 ) -> gotoTarget by URL:
groups/add

 [testSpec] (request.TargetHelper                64  ) getting response for
url: http://localhost:8080/cks/groups/add

 [testSpec] (request.TargetHelper                94  ) ScriptException:
enclosed exception was "TypeError: Cannot set property "preventDefault" of
null to "org.mozilla.javascript.InterpretedFunction@278e83"
(http://localhost:8080/cks/scripts/jquery.js#741)"

 [testSpec] (steps.Step                          556 ) Exception thrown from
this class: com.canoo.webtest.engine.StepFailedException

 [testSpec] (steps.Step                          558 ) Message was:
Step[invoke "Get Group add Page." (7/28)]: Script error executing at: invoke

...

 

Jon 


------=_NextPart_000_002B_01C65EF8.171302A0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>One of our web developers has made some =
changes to
our web application, which includes moving some Javascript into separate =
files.
For some reason this has caused my Canoo tests to fail with an error =
message I
have never seen before. I do not know what the error message means, or =
how to
diagnose the problem further. The error from the log below reads: =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&#8220;ScriptException: enclosed exception was
&quot;TypeError: Cannot set property &quot;preventDefault&quot; of null =
to
&quot;org.mozilla.javascript.InterpretedFunction@278e83&quot; (<a
href=3D"http://localhost:8080/cks/scripts/jquery.js#741)">http://localhos=
t:8080/cks/scripts/jquery.js#741)</a>&quot;.<o:p></o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>I have seen a fair number of script exception
problems on this mailing list, but I&#8217;ve never had a problem with =
them
before. Any help would be appreciated.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&#8230;&#8230;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;[testSpec] =
(steps.Step&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; 322
) &gt;&gt;&gt;&gt; Start Step: invoke &quot;Get Group add Page.&quot; =
(7/28)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;[testSpec] =
(request.AbstractTargetAction&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
105
) -&gt; gotoTarget by URL: groups/add<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;[testSpec] =
(request.TargetHelper&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64&nbsp;
) getting response for url: =
http://localhost:8080/cks/groups/add<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;[testSpec] =
(request.TargetHelper&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 94&nbsp;
) ScriptException: enclosed exception was &quot;TypeError: Cannot set =
property
&quot;preventDefault&quot; of null to
&quot;org.mozilla.javascript.InterpretedFunction@278e83&quot;
(http://localhost:8080/cks/scripts/jquery.js#741)&quot;<o:p></o:p></span>=
</font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;[testSpec] =
(steps.Step&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; 556
) Exception thrown from this class:
com.canoo.webtest.engine.StepFailedException<o:p></o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;[testSpec] =
(steps.Step&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; 558
) Message was: Step[invoke &quot;Get Group add Page.&quot; (7/28)]: =
Script
error executing at: invoke<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&#8230;&#8230;.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Jon <o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_002B_01C65EF8.171302A0--