[Webtest] Re: Scriptaculous Effect causes Exception
Matt Raible
webtest@lists.canoo.com
Wed, 25 Jan 2006 17:19:05 -0700
I tried the latest build and still get an exception - here's the
error. One thing that's wierd b/w 1108 and 1146 is I needed to have
jaxen-1.1-beta-8.jar in my classpath with 1146 - whereas I didn't need
it in 1108.
Matt
AddUser:
[webtest] 2006-01-25 17:08:50,852 ERROR com.canoo.webtest.steps.Step - Or=
igina
l cause of the XNIException: null
[webtest] java.util.ConcurrentModificationException
[webtest] at java.util.HashMap$HashIterator.nextEntry(HashMap.java:78=
2)
[webtest] at java.util.HashMap$ValueIterator.next(HashMap.java:812)
[webtest] at com.gargoylesoftware.htmlunit.ThreadManager.interruptAll=
(Thre
adManager.java:170)
[webtest] at com.gargoylesoftware.htmlunit.WebWindowImpl.destroyChild=
ren(W
ebWindowImpl.java:133)
[webtest] at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedP=
age(W
ebWindowImpl.java:96)
[webtest] at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDO=
MBuil
der.startDocument(HTMLParser.java:332)
[webtest] at org.apache.xerces.parsers.AbstractSAXParser.startDocumen=
t(Unk
nown Source)
[webtest] at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Sou=
rce)
[webtest] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegati=
ngMet
hodAccessorImpl.java:25)
[webtest] at java.lang.reflect.Method.invoke(Method.java:324)
[webtest] at org.cyberneko.html.filters.DefaultFilter.startDocument(D=
efaul
tFilter.java:102)
[webtest] at org.cyberneko.html.filters.NamespaceBinder.startDocument=
(Name
spaceBinder.java:247)
[webtest] at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Sou=
rce)
[webtest] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegati=
ngMet
hodAccessorImpl.java:25)
[webtest] at java.lang.reflect.Method.invoke(Method.java:324)
[webtest] at org.cyberneko.html.HTMLTagBalancer.startDocument(HTMLTag=
Balan
cer.java:380)
[webtest] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Sou=
rce)
[webtest] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegati=
ngMet
hodAccessorImpl.java:25)
[webtest] at java.lang.reflect.Method.invoke(Method.java:324)
[webtest] at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLS=
canne
r.java:1915)
[webtest] at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.=
java:
809)
[webtest] at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfigura=
tion.
java:478)
[webtest] at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfigura=
tion.
java:431)
[webtest] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source=
)
[webtest] at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDO=
MBuil
der.parse(HTMLParser.java:311)
[webtest] at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTML=
Parse
r.java:226)
[webtest] at com.gargoylesoftware.htmlunit.DefaultPageCreator.createH=
tmlPa
ge(DefaultPageCreator.java:116)
[webtest] at com.gargoylesoftware.htmlunit.DefaultPageCreator.createP=
age(D
efaultPageCreator.java:84)
[webtest] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseI=
nto(W
ebClient.java:426)
[webtest] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClien=
t.jav
a:344)
[webtest] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClien=
t.jav
a:384)
[webtest] at com.canoo.webtest.steps.request.TargetHelper.getResponse=
(Targ
etHelper.java:67)
[webtest] at com.canoo.webtest.steps.request.AbstractTargetAction.get=
Respo
nse(AbstractTargetAction.java:68)
[webtest] at com.canoo.webtest.steps.request.InvokePage.findTarget(In=
vokeP
age.java:135)
[webtest] at com.canoo.webtest.steps.request.AbstractTargetAction$1.c=
all(A
bstractTargetAction.java:108)
[webtest] at com.canoo.webtest.steps.request.TargetHelper.protectedGo=
to(Ta
rgetHelper.java:86)
[webtest] at com.canoo.webtest.steps.request.AbstractTargetAction.got=
oTarg
et(AbstractTargetAction.java:106)
[webtest] at com.canoo.webtest.steps.request.AbstractTargetAction.doE=
xecut
e(AbstractTargetAction.java:78)
[webtest] at com.canoo.webtest.steps.Step.execute(Step.java:154)
[webtest] at com.canoo.webtest.engine.Engine.executeSteps(Engine.java=
:28)
[webtest] at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.ja=
va:79
)
[webtest] at org.apache.tools.ant.UnknownElement.execute(UnknownEleme=
nt.ja
va:275)
[webtest] at org.apache.tools.ant.Task.perform(Task.java:364)
[webtest] at org.apache.tools.ant.Target.execute(Target.java:341)
[webtest] at org.apache.tools.ant.Target.performTasks(Target.java:369=
)
[webtest] at org.apache.tools.ant.Project.executeSortedTargets(Projec=
t.jav
a:1216)
[webtest] at org.apache.tools.ant.helper.SingleCheckExecutor.executeT=
arget
s(SingleCheckExecutor.java:37)
[webtest] at org.apache.tools.ant.Project.executeTargets(Project.java=
:1068
)
[webtest] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[webtest] at org.apache.tools.ant.UnknownElement.execute(UnknownEleme=
nt.ja
va:275)
[webtest] at org.apache.tools.ant.Task.perform(Task.java:364)
[webtest] at org.apache.tools.ant.Target.execute(Target.java:341)
[webtest] at org.apache.tools.ant.Target.performTasks(Target.java:369=
)
[webtest] at org.apache.tools.ant.Project.executeSortedTargets(Projec=
t.jav
a:1216)
[webtest] at org.apache.tools.ant.helper.SingleCheckExecutor.executeT=
arget
s(SingleCheckExecutor.java:37)
[webtest] at org.apache.tools.ant.Project.executeTargets(Project.java=
:1068
)
[webtest] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[webtest] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTar=
get.j
ava:107)
[webtest] at org.apache.tools.ant.UnknownElement.execute(UnknownEleme=
nt.ja
va:275)
[webtest] at org.apache.tools.ant.Task.perform(Task.java:364)
[webtest] at org.apache.tools.ant.Target.execute(Target.java:341)
[webtest] at org.apache.tools.ant.Target.performTasks(Target.java:369=
)
[webtest] at org.apache.tools.ant.Project.executeSortedTargets(Projec=
t.jav
a:1216)
[webtest] at org.apache.tools.ant.Project.executeTarget(Project.java:=
1185)
[webtest] at org.apache.tools.ant.helper.DefaultExecutor.executeTarge=
ts(De
faultExecutor.java:40)
[webtest] at org.apache.tools.ant.Project.executeTargets(Project.java=
:1068
)
[webtest] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[webtest] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[webtest] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:2=
46)
[webtest] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:=
67)
BUILD FAILED
/Users/mraible/Work/appfuse/build.xml:608: The following error occurred whi=
le ex
ecuting this line:
/Users/mraible/Work/appfuse/build.xml:569: The following error occurred whi=
le ex
ecuting this line:
/Users/mraible/Work/appfuse/test/web/web-tests.xml:117: Canoo Webtest: R_11=
46.
Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException: XNIExcep=
tion
caused by null, Step: InvokePage at /Users/mraible/Work/appfuse/test/web/we=
b-tes
ts.xml:146: with (description=3D"Click edit user link", url=3D"/editUser.h=
tml?usern
ame=3Dnewuser&from=3Dlist", method=3D"GET", stepType=3D"invoke")com.canoo.w=
ebtest.engine
.StepExecutionException: XNIException caused by null, Step: InvokePage at /=
Users
/mraible/Work/appfuse/test/web/web-tests.xml:146: with (description=3D"Cli=
ck edit
user link", url=3D"/editUser.html?username=3Dnewuser&from=3Dlist", method=
=3D"GET", step
Type=3D"invoke")
at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java=
:586)
at com.canoo.webtest.steps.AbstractBrowserAction.handleUnexpectedEx=
cepti
on(AbstractBrowserAction.java:107)
at com.canoo.webtest.steps.request.TargetHelper.protectedGoto(Targe=
tHelp
er.java:99)
at com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(=
Abstr
actTargetAction.java:106)
at com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(A=
bstra
ctTargetAction.java:78)
at com.canoo.webtest.steps.Step.execute(Step.java:154)
at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:28)
at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:79)
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:1=
216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(S=
ingle
CheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
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:1=
216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(S=
ingle
CheckExecutor.java:37)
On 1/16/06, Marc Guillemot <mguillemot@yahoo.fr> wrote:
> Matt,
>
> can you test again with the latest build: XNIException are now examined
> to report the deeply nested cause of the problem and if you use the
> webtest.(sh|bat) scripts they now say to ant not to look at jars that
> may be located in the user's ant directory.
>
> Marc.
>
> Matt Raible wrote:
> > On 1/13/06, Marc Guillemot <mguillemot@yahoo.fr> wrote:
> >
> >>Matt Raible <mraible@...> writes:
> >>
> >>
> >>>Hello all,
> >>>
> >>>I've found that the following script.aculo.us effect causes the
> >>>exception below to occur. The strange this is it only happens on OS X
> >>>- everything works fine on Windows XP.
> >>>
> >>>window.setTimeout("Effect.DropOut('successMessages')", 3000);
> >>>
> >>>Any ideas on how to keep this in my code, but keep this error from
> >>>happening on OS X?
> >>
> >>do you have the possibility to run the test directly with htmlunit to w=
alk the
> >>chain of XNIException / InvocationTargetException up to the original pr=
oblem?
> >>
> >>Marc.
> >
> >
> > I did notice that on my Windows box, I had a bunch of JARs in my
> > $ANT_HOME/lib, whereas on my Mac - I didn't have them. Basically, I
> > had the javanettask project's dependencies in my $ANT_HOME/lib.
> > Here's that list:
> >
> > https://javanettasks.dev.java.net/nonav/maven/dependencies.html
> >
> > Matt
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>