Hi
I have a tapestry app that Im testing using jwebunit. For no obvious reason, Im getting an ArrayIndexOutOfBoundsException while submitting a form. My test always fails at the same point (while clicking a Next submit button on a page). There is a button called "Lookup" which when clicked populates a drop-down. When the dropdown value changes, the form is submitted using "onchange="javascript:this.form.submit();"" and a few values (non-editable, just plain text) are updated. Could this have anything to do with this? I've looked at the html thats returned at different stages, i.e before and after clicking lookup, before and after selecting an item from the drop-down and it all looks right to me.
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 com.meterware.httpunit.FrameHolder.updateFrames(FrameHolder.java:82)
at com.meterware.httpunit.WebWindow.updateFrameContents(WebWindow.java:184)
at com.meterware.httpunit.WebClient.updateFrameContents(WebClient.java:472)
at com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:167)
at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:111)
at com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:99)
at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:204)
at com.meterware.httpunit.WebForm.submit(WebForm.java:65)
at com.meterware.httpunit.SubmitButton.click(SubmitButton.java:48)
at net.sourceforge.jwebunit.HttpUnitDialog.submit(Unknown Source)
at net.sourceforge.jwebunit.WebTester.submit(Unknown Source)
at net.sourceforge.jwebunit.WebTestCase.submit(Unknown Source)
at au.com.aiaa.claims.web.record.RecordClaimUITest.testSimpleRecordClaim(RecordClaimUITest.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
at net.sourceforge.jwebunit.HttpUnitDialog.submit(Unknown Source)
at net.sourceforge.jwebunit.WebTester.submit(Unknown Source)
at net.sourceforge.jwebunit.WebTestCase.submit(Unknown Source)
at au.com.aiaa.claims.web.record.RecordClaimUITest.testSimpleRecordClaim(RecordClaimUITest.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Jwebunit-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
