I manage to isolate the source of the problem but I
can't explain why it crashes the HTML parser.
There is a test which control that a field "address"
is not empty, when I fill the form with an empty
address ("") the error below appears on the submit()
call.
When I fill the form with a non-empty string no errors
arises except that the jWebUnit test fails, the
submit() call does pass without any problems.
It sounds strange for me... any suggestions?
PS: I have a similar test in another page that
controls the address and I have no problems.
--- pitchoo <[EMAIL PROTECTED]> wrote:
> It happens when the form is submitted and the
> message
> is:
>
> [junit] java.lang.RuntimeException:
> java.lang.ArrayIndexOutOfBoundsException: 2048
> [junit] at
> org.cyberneko.html.HTMLScanner.skipMarkup(Unknown
> Source)
> [junit] at
>
org.cyberneko.html.HTMLScanner$ContentScanner.scanAttribute(Unknown
> Source)
> [junit] at
>
org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(Unknown
> Source)
> [junit] at
>
org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown
> Source)
> [junit] at
> org.cyberneko.html.HTMLScanner.scanDocument(Unknown
> Source)
> [junit] at
> org.cyberneko.html.HTMLConfiguration.parse(Unknown
> Source)
> [junit] at
> org.cyberneko.html.HTMLConfiguration.parse(Unknown
> Source)
> [junit] at
> org.apache.xerces.parsers.XMLParser.parse(Unknown
> Source)
> [junit] at
> org.apache.xerces.parsers.DOMParser.parse(Unknown
> Source)
> [junit] at
>
com.meterware.httpunit.NekoHTMLParser.parse(NekoHTMLParser.java:49)
> [junit] at
>
com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:249)
> [junit] at
>
com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:918)
> [junit] at
>
com.meterware.httpunit.WebResponse.access$100(WebResponse.java:49)
> [junit] at
>
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:572)
> [junit] at
>
com.meterware.httpunit.javascript.JavaScript$Window.initialize(JavaScript.java:390)
> [junit] at
>
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java:80)
> [junit] at
>
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associate(JavaScriptEngineFactory.java:46)
> [junit] at
>
com.meterware.httpunit.FrameHolder.updateFrames(FrameHolder.java:82)
> [junit] at
>
com.meterware.httpunit.WebWindow.updateFrameContents(WebWindow.java:184)
> [junit] at
>
com.meterware.httpunit.WebClient.updateFrameContents(WebClient.java:472)
> [junit] at
>
com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:167)
> [junit] at
>
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:111)
> [junit] at
>
com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:99)
> [junit] at
>
com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:204)
> [junit] at
>
com.meterware.httpunit.WebForm.submit(WebForm.java:65)
> [junit] at
>
com.meterware.httpunit.WebForm.submit(WebForm.java:54)
> [junit] at
>
net.sourceforge.jwebunit.HttpUnitDialog.submit(Unknown
> Source)
> [junit] at
> net.sourceforge.jwebunit.WebTester.submit(Unknown
> Source)
> [junit] at
> net.sourceforge.jwebunit.WebTestCase.submit(Unknown
> Source)
>
>
>
> --- Sayeem Ahmed <[EMAIL PROTECTED]> wrote:
>
> > Let's see the code where you are getting this
> error.
> >
> > On 8/24/05, pitchoo <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I'm facing the same problem than the author of a
> > post
> > > from the 15 june 2004... so I need help on this
> > one.
> > > I found no solution to avoid this:
> > >
> > > "Hi
> > >
> > > I have a tapestry app that Im testing using
> > jwebunit.
> > > For no obvious
> > > reason, Im getting an
> > ArrayIndexOutOfBoundsException
> > > while submitting a
> > > form. All my tests always fail at the same point
> > > (while clicking a Next
> > > submit button on a page). I know its not
> jwebunit
> > > thats throwing the
> > > exception. But I"m just shooting in the air. Any
> > > feedback is appreciated.
> > >
> > >
> > > Regards
> > > Srini
> > >
> > >
> > >
> > >
> > > java.lang.RuntimeException:
> > > java.lang.ArrayIndexOutOfBoundsException: 2048
> > > at
> > >
> org.cyberneko.html.HTMLScanner.skipMarkup(Unknown
> > > Source)
> > > at
> > >
> > >
> >
>
org.cyberneko.html.HTMLScanner$ContentScanner.scanAttribute(Unknown
> > > Source)
> > > at
> > >
> > >
> >
>
org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(Unknown
> > >
> > > Source)
> > > at
> > >
> >
>
org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown
> > > Source)
> > > at
> > >
> >
> org.cyberneko.html.HTMLScanner.scanDocument(Unknown
> > > Source)
> > > at
> > >
> org.cyberneko.html.HTMLConfiguration.parse(Unknown
> > > Source)
> > > at
> > >
> org.cyberneko.html.HTMLConfiguration.parse(Unknown
> > > Source)
> > > at
> > >
> org.apache.xerces.parsers.XMLParser.parse(Unknown
> > > Source)
> > > at
> > >
> org.apache.xerces.parsers.DOMParser.parse(Unknown
> > > Source)
> > > at
> > >
> >
>
com.meterware.httpunit.NekoHTMLParser.parse(NekoHTMLParser.java:49)
> > > at
> > >
> >
>
com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:249)
> > > at
> > >
> > >
> >
>
com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:918)
> > > at
> > >
> >
>
com.meterware.httpunit.WebResponse.access$100(WebResponse.java:49)
> > > at
> > >
> > >
> >
>
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:572)
> > > at
> > >
> > >
> >
>
com.meterware.httpunit.javascript.JavaScript$Window.initialize(
> > > JavaScript.java:390)
> > > at
> > >
> >
>
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java:80)
> > > at
> > >
> > >
> >
>
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associate(
> > > JavaScriptEngineFactory.java:46)
> > > at
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users