[Webtest] java.util.ConcurrentModificationException

Pascal Lagasse Pascal Lagasse" <plagasse@koeselbuch.de
Tue, 14 Nov 2006 13:13:42 +0100


Allo,

I tried successfully Canoo Webtest with various Server/Web sites.

I was able to test various Web Applications on Tomcat.

However, when testing a Web Application based on Jetspeed 1.6, I =
received
the following Exception:
	Unexpected exception caught:
java.util.ConcurrentModificationException

Here is the content of result.xml

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<summary Implementation-Title=3D"Canoo Webtest"
Implementation-Version=3D"R_1393">
    <testresult endtime=3D"Tue Nov 14 13:01:26 CET 2006"
location=3D"C:\ant\vru.xml:8: "
        starttime=3D"Tue Nov 14 13:01:25 CET 2006" successful=3D"no"
testspecname=3D"testVRU">
        <config>
            <parameter name=3D"protocol" value=3D"http"/>
            <parameter name=3D"summary" value=3D"yes"/>
            <parameter name=3D"saveresponse" value=3D"yes"/>
            <parameter name=3D"timeout" value=3D"5000"/>
            <parameter name=3D"haltonerror" value=3D"yes"/>
            <parameter name=3D"port" value=3D"8080"/>
            <parameter name=3D"resultfile" value=3D"results.xml"/>
            <parameter name=3D"showhtmlparseroutput" value=3D"yes"/>
            <parameter name=3D"resultpath" =
value=3D"C:\ant\webtest-results"/>
            <parameter name=3D"host" value=3D"localhost"/>
            <parameter name=3D"haltonfailure" value=3D"yes"/>
            <parameter name=3D"basepath" value=3D"VRU"/>
            <parameter name=3D"saveprefix" value=3D"response"/>
        </config>
        <results>
            <step>
                <parameter name=3D"description" value=3D"get"/>
                <parameter name=3D"method" value=3D"GET"/>
                <parameter name=3D"taskName" value=3D"invoke"/>
                <parameter name=3D"url"
value=3D"http://localhost:8080/VRU/portal"/>
                <result>
                    <failed duration=3D"1253"/>
                </result>
                <htmlparser>
                    <error col=3D"45" line=3D"62"
url=3D"http://localhost:8080/VRU/portal">Missing attribute name.</error>
                </htmlparser>
            </step>
            <error
exception=3D"com.canoo.webtest.engine.StepExecutionException"
message=3D"Unexpected exception caught:
java.util.ConcurrentModificationException"><![CDATA[com.canoo.webtest.eng=
ine
.StepExecutionException: Unexpected exception caught:
java.util.ConcurrentModificationException, Step: InvokePage at
C:\ant\vru.xml:31:  with (description=3D"get", method=3D"GET",
taskName=3D"invoke", url=3D"http://localhost:8080/VRU/portal")         =
at
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:463)
at
com.canoo.webtest.steps.AbstractBrowserAction.handleUnexpectedException(A=
bst
ractBrowserAction.java:120)         at
com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.j=
ava
:114)         at
com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(AbstractT=
arg
etAction.java:106)         at
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTa=
rge
tAction.java:78)         at
com.canoo.webtest.steps.Step.execute(Step.java:132)         at
org.apache.tools.ant.Task.perform(Task.java:364)         at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java=
:58
)         at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:39=
)
at com.canoo.webtest.steps.Step.execute(Step.java:132)         at
org.apache.tools.ant.Task.perform(Task.java:364)         at
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:155)         =
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.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)         =
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecuto=
r.j
ava:40)         at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)         =
at
org.apache.tools.ant.Main.runBuild(Main.java:668)         at
org.apache.tools.ant.Main.startAnt(Main.java:187)         at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)         at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) Caused by:
java.util.ConcurrentModificationException         at
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
at java.util.AbstractList$Itr.next(AbstractList.java:420)         at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeOnLoadHandlersIfNeeded=
(Ht
mlPage.java:962)         at
com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:145)=

at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.jav=
a:4
40)         at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:335)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
at
com.canoo.webtest.steps.request.TargetHelper.getResponse(TargetHelper.jav=
a:6
9)         at
com.canoo.webtest.steps.request.AbstractTargetAction.getResponse(Abstract=
Tar
getAction.java:68)         at
com.canoo.webtest.steps.request.InvokePage.findTarget(InvokePage.java:134=
)
at
com.canoo.webtest.steps.request.AbstractTargetAction$1.call(AbstractTarge=
tAc
tion.java:108)         at
com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.j=
ava
:88)         ... 21 more ]]></error>
        </results>
    </testresult>
</summary>


Can someone help me?=20

Thank you very much,
=20

Pascal Lagass=E9
Projektentwicklung, Druckvorstufe
K=F6sel GmbH & Co. KG - =DCber 400 Jahre B=FCcher mit System
Am Buchweg 1
87452 Altusried-Krugzell
http://www.koeselbuch.de=20


=20