[Webtest] StepExecutionException on <groovy> step invocation

Dierk Koenig webtest@lists.canoo.com
Mon, 12 Jun 2006 10:04:37 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C68E07.9CB12C50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi manouche,

it looks like you have an offending version of objectweb ASM on your
classpath before the one that
Canoo WebTest uses.

Please check you environment settings for CLASSPATH and make sure you have
no
doubled versions of the asm-*.jar in your lib dir (maybe leftovers from
older WebTest versions
where you 'installed over' without deleting old jars).

hope that helps
Mittie
  -----Original Message-----
  From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of manouche groovy
  Sent: Montag, 12. Juni 2006 9:36
  To: webtest@lists.canoo.com
  Subject: Re: [Webtest] StepExecutionException on <groovy> step invocation


  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/TestAdminLog4jConfigurat
or.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/TestAdminLog4jConfigurat
or.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/TestAdminLog4jConfigurat
or.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


------=_NextPart_000_0007_01C68E07.9CB12C50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2873" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
manouche,</FONT></SPAN></DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =
size=3D2>it=20
looks like you have an offending version of objectweb ASM on your =
classpath=20
before the one that </FONT></SPAN></DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =
size=3D2>Canoo=20
WebTest uses.</FONT></SPAN></DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =
size=3D2>Please=20
check you environment settings for CLASSPATH and make sure you have=20
no</FONT></SPAN></DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =

size=3D2>doubled versions of the asm-*.jar in your lib dir (maybe =
leftovers from=20
older WebTest versions</FONT></SPAN></DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =
size=3D2>where=20
you 'installed over' without deleting old jars).</FONT></SPAN></DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =
size=3D2>hope=20
that helps</FONT></SPAN></DIV>
<DIV><SPAN class=3D646165207-12062006><FONT face=3DArial color=3D#0000ff =

size=3D2>Mittie</FONT></SPAN></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
  Behalf Of </B>manouche groovy<BR><B>Sent:</B> Montag, 12. Juni 2006=20
  9:36<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject:</B> Re: =
[Webtest]=20
  StepExecutionException on &lt;groovy&gt; step=20
  invocation<BR><BR></FONT></DIV>Hi Dierk,<BR><BR>Here's the stacktrace=20
:<BR><BR>
  <META content=3D"OpenOffice.org 2.0  (Linux)" name=3DGENERATOR>
  <META content=3D20051230;17144900 name=3DCREATED>
  <META content=3D20060609;18180700 name=3DCHANGED>
  <STYLE>UNKNOWN {
	MARGIN: 2cm; size: 21cm 29.7cm
}
P {
	MARGIN-BOTTOM: 0.21cm
}
</STYLE>
<PRE style=3D"MARGIN-LEFT: -0.02cm; TEXT-INDENT: 0.02cm; FONT-FAMILY: =
courier new,monospace"><FONT style=3D"FONT-SIZE: 8pt" =
size=3D1>/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/TestAdminLog4jConfigu=
rator.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/S=
tring;[Ljava/lang/String;Ljava/lang/String;)V,
<BR>Step: GroovyStep at =
/home/autobuild/work/checkout/wsso_test/tests/canoo/TestAdminLog4jConfigu=
rator.xml:29: with (stepid=3D"&lt;unknown&gt;",<BR>text=3D<BR>" def =
authorizedLevels =3D ["DEBUG", "INFO", "WARN", "ERROR", "FATAL"]
<BR>def document =3D =
step.getContext().getCurrentHtmlResponse().getDocumentElement()<BR>def =
selectLevels =3D =
document.getOneHtmlElementByAttribute('select','name','activeLevel')<BR>d=
ef optionsLevels =3D selectLevels.getHtmlElementsByTagName
('option')<BR>assert optionsLevels.size() =3D=3D authorizedLevels.size() =
def flatOptionsLevels =3D selectLevels.getChildrenAsText()<BR>for (level =
in authorizedLevels) {<BR>assert =
flatOptionsLevels.toString().indexOf(level) !=3D -1
<BR>} =
",<BR>stepType=3D"groovy")com.canoo.webtest.engine.StepExecutionException=
:<BR>Error trying to invoke groovy: =
org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/Strin=
g;[Ljava/lang/String;Ljava/lang/String;)V,
<BR>Step: GroovyStep at =
/home/autobuild/work/checkout/wsso_test/tests/canoo/TestAdminLog4jConfigu=
rator.xml:29: with (stepid=3D"&lt;unknown&gt;", text=3D" def =
authorizedLevels =3D ["DEBUG", "INFO", "WARN", "ERROR", "FATAL"] def =
document =3D=20
step.getContext().getCurrentHtmlResponse().getDocumentElement() def =
selectLevels =3D =
document.getOneHtmlElementByAttribute('select','name','activeLevel') def =
optionsLevels =3D selectLevels.getHtmlElementsByTagName('option') assert =

optionsLevels.size() =3D=3D authorizedLevels.size() def =
flatOptionsLevels =3D selectLevels.getChildrenAsText() for (level in =
authorizedLevels) { assert flatOptionsLevels.toString().indexOf(level) =
!=3D -1 } ", stepType=3D"groovy") at=20
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=20
  for any help<BR>Best regards<BR><BR>
  <DIV><SPAN class=3Dgmail_quote>2006/6/9, Dierk Koenig &lt;<A=20
  =
href=3D"mailto:dierk.koenig@canoo.com">dierk.koenig@canoo.com</A>&gt;:</S=
PAN>
  <BLOCKQUOTE class=3Dgmail_quote=20
  style=3D"PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: =
rgb(204,204,204) 1px solid">
    <DIV>
    <DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff size=3D2>Hi=20
    manouche,</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff size=3D2>welcome to =
Canoo=20
    WebTest.</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff size=3D2>Could you =
please paste the=20
    full exeception message and stacktrace in the =
mail?</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff size=3D2>Please also =
add the full=20
    text of the &lt;groovy&gt; step.</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff =
size=3D2>cheers</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff=20
    size=3D2>Mittie</FONT></SPAN></DIV></DIV>
    <DIV><SPAN class=3De id=3Dq_10bba4d56c893b84_1>
    <BLOCKQUOTE=20
    style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: =
rgb(0,0,255) 2px solid">
      <DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma =
size=3D2>-----Original=20
      Message-----<BR><B>From:</B> <A=20
      onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
      href=3D"mailto:webtest-admin@lists.canoo.com"=20
      target=3D_blank>webtest-admin@lists.canoo.com</A> [mailto:<A=20
      onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
      href=3D"mailto:webtest-admin@lists.canoo.com" target=3D_blank>=20
      webtest-admin@lists.canoo.com</A>]<B>On Behalf Of </B>manouche=20
      groovy<BR><B>Sent:</B> Freitag, 9. Juni 2006 17:57<BR><B>To:</B> =
canoo=20
      webtest<BR><B>Subject:</B> [Webtest] StepExecutionException on=20
      &lt;groovy&gt; step invocation<BR><BR></FONT></DIV>Hi,<BR>(sorry =
for my=20
      basic englsh...)<BR><BR>I try to launch a <SPAN=20
      style=3D"FONT-WEIGHT: bold">&lt;groovy&gt; step</SPAN> in a =
webtest=20
      functional test, but it fails with error :<BR><PRE =
style=3D"TEXT-INDENT: 0.02cm"><FONT face=3D"Bitstream Vera Sans, =
sans-serif"><FONT style=3D"FONT-SIZE: 8pt" =
size=3D1>com.canoo.webtest.engine.StepExecutionException
: <B>Error trying to invoke groovy: =
<BR>org.objectweb.asm.ClassVisitor.visit<BR></B></FONT></FONT></PRE>...=20
      whereas, in my classpath, there is :<BR><FONT size=3D1><SPAN=20
      style=3D"FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;=20
      [webtest_home]/lib/*.jar</SPAN><BR=20
      style=3D"FONT-FAMILY: courier new,monospace"><SPAN=20
      style=3D"FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;=20
      [webtest_home]/lib/optional/*.jar</SPAN><BR=20
      style=3D"FONT-FAMILY: courier new,monospace"></FONT><BR>My =
environment=20
      :<BR><FONT size=3D1><SPAN=20
      style=3D"FONT-FAMILY: courier new,monospace">&nbsp;&nbsp; Linux =
Fedora Core=20
      release 3</SPAN><BR style=3D"FONT-FAMILY: courier =
new,monospace"><SPAN=20
      style=3D"FONT-FAMILY: courier new,monospace">&nbsp;&nbsp; Kernel=20
      2.6.9-1.667<BR>&nbsp;&nbsp; canoo-1.7.805<BR=20
      style=3D"FONT-FAMILY: courier new,monospace"></SPAN></FONT><BR>Any =
idea ?=20
      Any workaround ?<BR>Thanks in advance<BR>Best regards=20
    </BLOCKQUOTE></SPAN></DIV>
    <DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0007_01C68E07.9CB12C50--