[Webtest] StepExecutionException on <groovy> step invocation

manouche groovy webtest@lists.canoo.com
Mon, 12 Jun 2006 09:36:00 +0200


------=_Part_47072_25701575.1150097760741
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Dierk,

Here's the stacktrace :

 /home/autobuild/work/cruisecontrol/conf/cc.wsso.xml:25: The following
error occurred while executing this line:
/home/autobuild/work/cruisecontrol/conf/cc.wsso.xml:329:
The following error occurred while executing this line:
/home/autobuild/work/checkout/wsso_test/tests/canoo/TestSuite.xml:25:
The following error occurred while executing this line:
/home/autobuild/work/checkout/wsso_test/tests/canoo/TestAdminLog4jConfigurator.xml:13:
Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException:
*Error trying to invoke groovy:
org.objectweb.asm.ClassVisitor.visit*(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V,
Step: GroovyStep at
/home/autobuild/work/checkout/wsso_test/tests/canoo/TestAdminLog4jConfigurator.xml:29:
with (stepid="<unknown>",
text=
" def authorizedLevels = ["DEBUG", "INFO", "WARN", "ERROR", "FATAL"]
def document = step.getContext().getCurrentHtmlResponse().getDocumentElement()
def selectLevels =
document.getOneHtmlElementByAttribute('select','name','activeLevel')
def optionsLevels = selectLevels.getHtmlElementsByTagName('option')
assert optionsLevels.size() == authorizedLevels.size() def
flatOptionsLevels = selectLevels.getChildrenAsText()
for (level in authorizedLevels) {
assert flatOptionsLevels.toString().indexOf(level) != -1
} ",
stepType="groovy")com.canoo.webtest.engine.StepExecutionException:
Error trying to invoke groovy:
org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V,
Step: GroovyStep at
/home/autobuild/work/checkout/wsso_test/tests/canoo/TestAdminLog4jConfigurator.xml:29:
with (stepid="<unknown>", text=" def authorizedLevels = ["DEBUG",
"INFO", "WARN", "ERROR", "FATAL"] def document =
step.getContext().getCurrentHtmlResponse().getDocumentElement() def
selectLevels = document.getOneHtmlElementByAttribute('select','name','activeLevel')
def optionsLevels = selectLevels.getHtmlElementsByTagName('option')
assert optionsLevels.size() == authorizedLevels.size() def
flatOptionsLevels = selectLevels.getChildrenAsText() for (level in
authorizedLevels) { assert flatOptionsLevels.toString().indexOf(level)
!= -1 } ", stepType="groovy") at
com.canoo.webtest.extension.GroovyStep.doExecute(GroovyStep.java:51)
at com.canoo.webtest.steps.Step.execute(Step.java:100) at
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:31) at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.java:72)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.Project.executeTargets(Project.java:1062) at
org.apache.tools.ant.Main.runBuild(Main.java:673) at
org.apache.tools.ant.Main.startAnt(Main.java:188) at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)


Thanks for any help
Best regards

2006/6/9, Dierk Koenig <dierk.koenig@canoo.com>:
>
>  Hi manouche,
>
> welcome to Canoo WebTest.
>
> Could you please paste the full exeception message and stacktrace in the
> mail?
> Please also add the full text of the <groovy> step.
>
> cheers
> Mittie
>
> -----Original Message-----
> *From:* webtest-admin@lists.canoo.com [mailto:
> webtest-admin@lists.canoo.com]*On Behalf Of *manouche groovy
> *Sent:* Freitag, 9. Juni 2006 17:57
> *To:* canoo webtest
> *Subject:* [Webtest] StepExecutionException on <groovy> step invocation
>
> Hi,
> (sorry for my basic englsh...)
>
> I try to launch a <groovy> step in a webtest functional test, but it fails
> with error :
>
> com.canoo.webtest.engine.StepExecutionException: *Error trying to invoke groovy:
> org.objectweb.asm.ClassVisitor.visit
> *
>
> ... whereas, in my classpath, there is :
>    [webtest_home]/lib/*.jar
>    [webtest_home]/lib/optional/*.jar
>
> My environment :
>    Linux Fedora Core release 3
>    Kernel 2.6.9-1.667
>    canoo-1.7.805
>
> Any idea ? Any workaround ?
> Thanks in advance
> Best regards
>
>

------=_Part_47072_25701575.1150097760741
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Dierk,<br>
<br>
Here's the stacktrace :<br>
<br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 2.0  (Linux)"><meta name="CREATED" content="20051230;17144900"><meta name="CHANGED" content="20060609;18180700">

	
	
	
	
	<style>
	&lt;!--
		@page { size: 21cm 29.7cm; margin: 2cm }
		P { margin-bottom: 0.21cm }
	--&gt;
	</style>

<pre style="margin-left: -0.02cm; text-indent: 0.02cm; font-family: courier new,monospace;"><font style="font-size: 8pt;" size="1">/home/autobuild/work/cruisecontrol/conf/cc.wsso.xml:25: The following error occurred while executing this line: /home/autobuild/work/cruisecontrol/conf/cc.wsso.xml:329:
<br>The following error occurred while executing this line: /home/autobuild/work/checkout/wsso_test/tests/canoo/TestSuite.xml:25:<br>The following error occurred while executing this line: /home/autobuild/work/checkout/wsso_test/tests/canoo/TestAdminLog4jConfigurator.xml:13: Test failed.
<br>Exception raised: com.canoo.webtest.engine.StepExecutionException: <b>Error trying to invoke groovy: org.objectweb.asm.ClassVisitor.visit</b>(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V,
<br>Step: GroovyStep at /home/autobuild/work/checkout/wsso_test/tests/canoo/TestAdminLog4jConfigurator.xml:29: with (stepid=&quot;&lt;unknown&gt;&quot;,<br>text=<br>&quot; def authorizedLevels = [&quot;DEBUG&quot;, &quot;INFO&quot;, &quot;WARN&quot;, &quot;ERROR&quot;, &quot;FATAL&quot;]
<br>def document = step.getContext().getCurrentHtmlResponse().getDocumentElement()<br>def selectLevels = document.getOneHtmlElementByAttribute('select','name','activeLevel')<br>def optionsLevels = selectLevels.getHtmlElementsByTagName
('option')<br>assert optionsLevels.size() == authorizedLevels.size() def flatOptionsLevels = selectLevels.getChildrenAsText()<br>for (level in authorizedLevels) {<br>assert flatOptionsLevels.toString().indexOf(level) != -1
<br>} &quot;,<br>stepType=&quot;groovy&quot;)com.canoo.webtest.engine.StepExecutionException:<br>Error trying to invoke groovy: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V,
<br>Step: GroovyStep at /home/autobuild/work/checkout/wsso_test/tests/canoo/TestAdminLog4jConfigurator.xml:29: with (stepid=&quot;&lt;unknown&gt;&quot;, text=&quot; def authorizedLevels = [&quot;DEBUG&quot;, &quot;INFO&quot;, &quot;WARN&quot;, &quot;ERROR&quot;, &quot;FATAL&quot;] def document = 
step.getContext().getCurrentHtmlResponse().getDocumentElement() def selectLevels = document.getOneHtmlElementByAttribute('select','name','activeLevel') def optionsLevels = selectLevels.getHtmlElementsByTagName('option') assert 
optionsLevels.size() == authorizedLevels.size() def flatOptionsLevels = selectLevels.getChildrenAsText() for (level in authorizedLevels) { assert flatOptionsLevels.toString().indexOf(level) != -1 } &quot;, stepType=&quot;groovy&quot;) at 
com.canoo.webtest.extension.GroovyStep.doExecute(GroovyStep.java:51) at com.canoo.webtest.steps.Step.execute(Step.java:100) at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:31) at com.canoo.webtest.ant.TestSpecificationTask.execute
(TestSpecificationTask.java:72) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks
(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform
(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.taskdefs.Ant.execute
(Ant.java:386) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks
(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget
(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run
(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)</font></pre>
<br>
Thanks for any help<br>
Best regards<br><br><div><span class="gmail_quote">2006/6/9, Dierk Koenig &lt;<a href="mailto:dierk.koenig@canoo.com">dierk.koenig@canoo.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>



<div>
<div><span><font color="#0000ff" face="Arial" size="2">Hi 
manouche,</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">welcome to Canoo WebTest.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">Could 
you please paste the full exeception message and stacktrace in the 
mail?</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">Please 
also add the full text of the &lt;groovy&gt; step.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">cheers</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">Mittie</font></span></div></div><div><span class="e" id="q_10bba4d56c893b84_1">
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px;">
  <div align="left" dir="ltr"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> 
  <a href="mailto:webtest-admin@lists.canoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">webtest-admin@lists.canoo.com</a> [mailto:<a href="mailto:webtest-admin@lists.canoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
webtest-admin@lists.canoo.com</a>]<b>On 
  Behalf Of </b>manouche groovy<br><b>Sent:</b> Freitag, 9. Juni 2006 
  17:57<br><b>To:</b> canoo webtest<br><b>Subject:</b> [Webtest] 
  StepExecutionException on &lt;groovy&gt; step 
  invocation<br><br></font></div>Hi,<br>(sorry for my basic englsh...)<br><br>I 
  try to launch a <span style="font-weight: bold;">&lt;groovy&gt; step</span> in 
  a webtest functional test, but it fails with error :<br><pre style="text-indent: 0.02cm;"><font face="Bitstream Vera Sans, sans-serif"><font style="font-size: 8pt;" size="1">com.canoo.webtest.engine.StepExecutionException
: <b>Error trying to invoke groovy: <br>org.objectweb.asm.ClassVisitor.visit<br></b></font></font></pre>... whereas, in my classpath, there is :<br><font size="1"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; 
  [webtest_home]/lib/*.jar</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; 
  [webtest_home]/lib/optional/*.jar</span><br style="font-family: courier new,monospace;"></font><br>My environment 
  :<br><font size="1"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; Linux Fedora Core 
  release 3</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; Kernel 
  2.6.9-1.667<br>&nbsp;&nbsp; canoo-1.7.805<br style="font-family: courier new,monospace;"></span></font><br>Any idea ? Any 
  workaround ?<br>Thanks in advance<br>Best regards </blockquote></span></div><div></div>

</div></blockquote></div><br>

------=_Part_47072_25701575.1150097760741--