From: Erskine, C. <chr...@ed...> - 2004-09-28 23:23:12
|
I am getting the following Exception for a test that I am trying to develop. It looks like the root cause is java.lang.RuntimeException: java.lang.ClassFormatError: org/mozilla/javascript/gen/c396 (Code of a method longer than 65535 bytes) This appears to be due to compiling the JavaScript arrays that are defined in on the page. Is there some way to get around this problem? Would it be possible to fix HtmlUnit to break the source up into some smaller modules to prevent this from happening. If it is thought that this would work, I can try to see if I can get it to work. ======= EXCEPTION START ======== Exception class=[org.mozilla.javascript.JavaScriptException] com.gargoylesoftware.htmlunit.ScriptException: com.gargoylesoftware.htmlunit.ObjectInstantiationException: Exception when calling constructor [public com.gargoylesoftware.htmlunit.html.HtmlFrame(com.gargoylesoftware.htmlunit.h tml.HtmlPage,java.util.Map)] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:261) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:699) at com.eds.gears.test.LoginTest.testHomePage(LoginTest.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu nner.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) JavaScriptException value = com.gargoylesoftware.htmlunit.ObjectInstantiationException: Exception when calling constructor [public com.gargoylesoftware.htmlunit.html.HtmlFrame(com.gargoylesoftware.htmlunit.h tml.HtmlPage,java.util.Map)] at com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElement(Defau ltElementFactory.java:108) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen t(HTMLParser.java:316) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.cyberneko.html.filters.DefaultFilter.emptyElement(Unknown Source) at com.gargoylesoftware.htmlunit.ScriptFilter.emptyElement(ScriptFilter.java:17 6) at org.cyberneko.html.filters.DefaultFilter.emptyElement(Unknown Source) at org.cyberneko.html.filters.NamespaceBinder.emptyElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.startElement(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 com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP arser.java:279) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC reator.java:110) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat or.java:82) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 69) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:421) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:179) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:130) at com.gargoylesoftware.htmlunit.javascript.host.Form.jsFunction_submit(Form.ja va:205) at inv19.invoke() at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:498) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:414) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c260.call(Embedded script:14) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c250.call(../../js/selectList.js:30) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c268.call(Wrapper definition for submitMasterProfile:1) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c270.call(submitMasterProfile:1) at org.mozilla.javascript.gen.c270.exec(submitMasterProfile) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:256) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:699) at com.eds.gears.test.LoginTest.testHomePage(LoginTest.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu nner.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) Enclosed exception: ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: java.lang.ClassFormatError: org/mozilla/javascript/gen/c396 (Code of a method longer than 65535 bytes) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:264) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:702) at com.gargoylesoftware.htmlunit.ScriptFilter.executeScript(ScriptFilter.java:2 74) at com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:233) at org.cyberneko.html.filters.DefaultFilter.endElement(Unknown Source) at org.cyberneko.html.filters.NamespaceBinder.endElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source) at org.cyberneko.html.HTMLScanner$SpecialScanner.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 com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP arser.java:279) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC reator.java:110) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat or.java:82) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 69) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:454) at com.gargoylesoftware.htmlunit.html.HtmlFrame.<init>(HtmlFrame.java:87) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElement(Defau ltElementFactory.java:96) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen t(HTMLParser.java:316) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.cyberneko.html.filters.DefaultFilter.emptyElement(Unknown Source) at com.gargoylesoftware.htmlunit.ScriptFilter.emptyElement(ScriptFilter.java:17 6) at org.cyberneko.html.filters.DefaultFilter.emptyElement(Unknown Source) at org.cyberneko.html.filters.NamespaceBinder.emptyElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.startElement(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 com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP arser.java:279) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC reator.java:110) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat or.java:82) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 69) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:421) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:179) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:130) at com.gargoylesoftware.htmlunit.javascript.host.Form.jsFunction_submit(Form.ja va:205) at inv19.invoke() at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:498) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:414) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c260.call(Embedded script:14) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c250.call(../../js/selectList.js:30) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c268.call(Wrapper definition for submitMasterProfile:1) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c270.call(submitMasterProfile:1) at org.mozilla.javascript.gen.c270.exec(submitMasterProfile) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:256) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:699) at com.eds.gears.test.LoginTest.testHomePage(LoginTest.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu nner.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) Enclosed exception: java.lang.RuntimeException: java.lang.ClassFormatError: org/mozilla/javascript/gen/c396 (Code of a method longer than 65535 bytes) at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:113) at org.mozilla.javascript.Context.compile(Context.java:2076) at org.mozilla.javascript.Context.compile(Context.java:2006) at org.mozilla.javascript.Context.compileReader(Context.java:899) at org.mozilla.javascript.Context.evaluateReader(Context.java:817) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:256) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:702) at com.gargoylesoftware.htmlunit.ScriptFilter.executeScript(ScriptFilter.java:2 74) at com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:233) at org.cyberneko.html.filters.DefaultFilter.endElement(Unknown Source) at org.cyberneko.html.filters.NamespaceBinder.endElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source) at org.cyberneko.html.HTMLScanner$SpecialScanner.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 com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP arser.java:279) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC reator.java:110) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat or.java:82) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 69) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:454) at com.gargoylesoftware.htmlunit.html.HtmlFrame.<init>(HtmlFrame.java:87) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElement(Defau ltElementFactory.java:96) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen t(HTMLParser.java:316) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.cyberneko.html.filters.DefaultFilter.emptyElement(Unknown Source) at com.gargoylesoftware.htmlunit.ScriptFilter.emptyElement(ScriptFilter.java:17 6) at org.cyberneko.html.filters.DefaultFilter.emptyElement(Unknown Source) at org.cyberneko.html.filters.NamespaceBinder.emptyElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.startElement(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 com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP arser.java:279) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC reator.java:110) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat or.java:82) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 69) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:421) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:179) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:130) at com.gargoylesoftware.htmlunit.javascript.host.Form.jsFunction_submit(Form.ja va:205) at inv19.invoke() at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:498) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:414) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c260.call(Embedded script:14) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c250.call(../../js/selectList.js:30) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199) at org.mozilla.javascript.gen.c268.call(Wrapper definition for submitMasterProfile:1) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c270.call(submitMasterProfile:1) at org.mozilla.javascript.gen.c270.exec(submitMasterProfile) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:256) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:699) at com.eds.gears.test.LoginTest.testHomePage(LoginTest.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu nner.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) == CALLING JAVASCRIPT == calLearnAswArray = [textMenuItem('calLearnAswSAFSM', 'Cal-Learn AFLP Site Selection For Maintenance (SAFS)', '../action/Jump?jumpField=SAFS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('calLearnAswMAFSM', 'Cal-Learn AFLP Site Maintenance (MAFS)', '../action/Jump?jumpField=MAFS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('calLearnAswSAFCM', 'Select Cal-Learn Workers For Maintenance (SAFC)', '../action/Jump?jumpField=SAFC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('calLearnAswMAFCM', 'Cal-Learn AFLP Case Worker Maintenance (MAFC)', '../action/Jump?jumpField=MAFC', 'l', '', '', true, 'mainFrame', 2) ]; caseAdmGssDreArray = [textMenuItem('caseAdmGssDreMGRGM', 'Registration Maintenance (MGRG)', '../action/Jump?jumpField=MGRG', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssDreSICRM', 'Inquire Ineligible Participants By Region (SICR)', '../action/Jump?jumpField=SICR', 'l', '', '', true, 'mainFrame', 1) ]; caseAdmGssDraArray = [textMenuItem('caseAdmGssDraMALEM', 'Maintain Alerts (MALE)', '../action/Jump?jumpField=MALE', 'l', '', '', true, 'mainFrame', 1) ]; systemMainMppArray = [textMenuItem('systemMainMppMPIMM', 'Service Provider Invoice Match And Payment Review (MPIM)', '../action/Jump?jumpField=MPIM', 'l', '', '', true, 'mainFrame', 1), textMenuItem('systemMainMppMCIMM', 'Maintain Child Care Invoice Match (MCIM)', '../action/Jump?jumpField=MCIM', 'l', '', '', true, 'mainFrame', 1) ]; caseMainDpDpArray = [textMenuItem('caseMainDpDpMGRGM', 'Registration Maintenance (MGRG)', '../action/Jump?jumpField=MGRG', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpIPCAM', 'Participant Component Selection (IPCA)', '../action/Jump?jumpField=IPCA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpSAEAM', 'Ancillary Expense Authorization Selection (SAEA)', '../action/Jump?jumpField=SAEA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpSCCGM', 'Select Child Care Global Authorization (SCCG)', '../action/Jump?jumpField=SCCG', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpICMSM', 'Compliance Selection (ICMS)', '../action/Jump?jumpField=ICMS', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpICASM', 'Case Information Inquiry (ICAS)', '../action/Jump?jumpField=ICAS', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpIPRCM', 'Person Record Inquiry (IPRC)', '../action/Jump?jumpField=IPRC', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpIGPSM', 'Participant Program Status Inquiry - Part1 (IGPS)', '../action/Jump?jumpField=IGPS', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpIGP2M', 'Participant Program Status Inquiry - Part2 (IGP2)', '../action/Jump?jumpField=IGP2', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpMWFHM', 'Maintain Case Welfare History (MWFH)', '../action/Jump?jumpField=MWFH', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainDpDpMCAPM', 'Maintain Case Phone And Address (MCAP)', '../action/Jump?jumpField=MCAP', 'l', '', '', true, 'mainFrame', 1) ]; calLearnLeftAlrtArray = [textMenuItem('calLearnMainAlrtM', 'Alerts', 'javascript:\\', 'n', 'calLearnMainAlrt', '', true, 'mainFrame', 1) ]; caseMainLeftTcArray = [textMenuItem('caseMainTcPctM', 'Prepare Case for Transfer', 'javascript:\\', 'n', 'caseMainTcPct', '', true, 'mainFrame', 1), textMenuItem('caseMainTcTcM', 'Transfer Case', 'javascript:\\', 'n', 'caseMainTcTc', '', true, 'mainFrame', 2) ]; caseAdmScIprArray = [textMenuItem('caseAdmScIprMCAPM', 'Maintain Case Phone And Address (MCAP)', '../action/Jump?jumpField=MCAP', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmScIprICASM', 'Case Information Inquiry (ICAS)', '../action/Jump?jumpField=ICAS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmScIprIPRCM', 'Person Record Inquiry (IPRC)', '../action/Jump?jumpField=IPRC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmScIprMGRGM', 'Registration Maintenance (MGRG)', '../action/Jump?jumpField=MGRG', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmScIprMPRSM', 'Participant Registration (MPRS)', '../action/Jump?jumpField=MPRS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmScIprIAPPM', 'Appraisal Selection Inquiry (IAPP)', '../action/Jump?jumpField=IAPP', 'l', '', '', true, 'mainFrame', 2) ]; calLearnAnArray = [textMenuItem('calLearnAnMALEM', 'Maintain Alerts (MALE)', '../action/Jump?jumpField=MALE', 'l', '', '', true, 'mainFrame', 2), textMenuItem('calLearnAnMAFAM', 'Maintain Cal-Learn AFLP Alerts (MAFA)', '../action/Jump?jumpField=MAFA', 'l', '', '', true, 'mainFrame', 2), textMenuItem('calLearnAnSPNFM', 'Participant Notice File Selection (SPNF)', '../action/Jump?jumpField=SPNF', 'l', '', '', true, 'mainFrame', 2), textMenuItem('calLearnAnSNOAM', 'NOA Notice Selection (SNOA)', '../action/Jump?jumpField=SNOA', 'l', '', '', true, 'mainFrame', 2), textMenuItem('calLearnAnMNOFM', 'Maintain Notice Formats (MNOF)', '../action/Jump?jumpField=MNOF', 'l', '', '', true, 'mainFrame', 2), textMenuItem('calLearnAnMVDSM', 'Maintain Variable Data Screen (MVDS hyc test)', '../action/Jump?jumpField=MVDS', 'l', '', '', true, 'mainFrame', 2) ]; caseMainTransTorArray = [textMenuItem('caseMainTransTorSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainTransTorSOPRM', 'Select Overpayment Record (SOPR)', '../action/Jump?jumpField=SOPR', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainTransTorORACM', 'Overpayment/Repayment Accumulation (ORAC)', '../action/Jump?jumpField=ORAC', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainTransTorMNOFM', 'Maintain Notice Formats (MNOF)', '../action/Jump?jumpField=MNOF', 'l', '', '', true, 'mainFrame', 1) ]; tst_noticesArray = [textMenuItem('MBED', 'MBED', '../action/Jump?jumpField=MBED', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MNAP', 'MNAP', '../action/Jump?jumpField=MNAP', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MNOF', 'MNOF', '../action/Jump?jumpField=MNOF&nextMapping=MNOF', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MNOT', 'MNOT', '../action/Jump?jumpField=MNOT', 'l', '', '', true, 'mainFrame', 0), textMenuItem('PAFN', 'PAFN', '../action/Jump?jumpField=PAFN', 'l', '', '', true, 'mainFrame', 0), textMenuItem('PAPP', 'PAPP', '../action/Jump?jumpField=PAPP', 'l', '', '', true, 'mainFrame', 0), textMenuItem('PBAP', 'PBAP', '../action/Jump?jumpField=PBAP', 'l', '', '', true, 'mainFrame', 0), textMenuItem('SNOA', 'SNOA', '../action/Jump?jumpField=SNOA', 'l', '', '', true, 'mainFrame', 0), textMenuItem('SPNF', 'SPNF', '../action/Jump?jumpField=SPNF', 'l', '', '', true, 'mainFrame', 0) ]; tst_providersArray = [textMenuItem('IICI', 'IICI', '../action/Jump?jumpField=IICI&nextMapping=IICI', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MACC', 'MACC', '../action/Jump?jumpField=MACC', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MCSI', 'MCSI', '../action/Jump?jumpField=MCSI&nextMapping=MCSI', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MICI', 'MICI', '../action/Jump?jumpField=MICI&nextMapping=MICI', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MPIM', 'MPIM', '../action/Jump?jumpField=MPIM', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MPPI', 'MPPI', '../action/Jump?jumpField=MPPI&nextMapping=MPPI', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MPRI', 'MPRI', '../action/Jump?jumpField=MPRI', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MPSI', 'MPSI', '../action/Jump?jumpField=MPSI&nextMapping=MPSI', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MSPI', 'MSPI', '../action/Jump?jumpField=MSPI&nextMapping=MSPI', 'l', '', '', true, 'mainFrame', 0), textMenuItem('SASP', 'SASP', '../action/Jump?jumpField=SASP', 'l', '', '', true, 'mainFrame', 0) ]; caseAdmScSacsArray = [textMenuItem('caseAdmScSacsMPRSM', 'Participant Registration (MPRS)', '../action/Jump?jumpField=MPRS', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmScSacsICMSM', 'Compliance Selection (ICMS)', '../action/Jump?jumpField=ICMS', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmScSacsINCSM', 'Conciliation Selection (INCS)', '../action/Jump?jumpField=INCS', 'l', '', '', true, 'mainFrame', 1) ]; testArray = [textMenuItem('t1', 'Alerts', 'expandMenu("tst_alerts")', 's', 'tst_alerts', '', true, '', 0), textMenuItem('t2', 'Appraisal', 'expandMenu("tst_appraisal")', 's', 'tst_appraisal', '', true, '', 0), textMenuItem('t3', 'Assessment', 'expandMenu("tst_assessment")', 's', 'tst_assessment', '', true, '', 0), textMenuItem('t4', 'CalLearn', 'expandMenu("tst_calLearn")', 's', 'tst_calLearn', '', true, '', 0), textMenuItem('t5', 'CaseMaintenance', 'expandMenu("tst_casemaintance")', 's', 'tst_casemaintance', '', true, '', 0), textMenuItem('t6', 'Compliance', 'expandMenu("tst_compliance")', 's', 'tst_compliance', '', true, '', 0), textMenuItem('t7', 'Component', 'expandMenu("tst_component")', 's', 'tst_component', '', true, '', 0), textMenuItem('t8', 'Connect', 'expandMenu("tst_connect")', 's', 'tst_connect', '', true, '', 0), textMenuItem('t9', 'Employment', 'expandMenu("tst_employment")', 's', 'tst_employment', '', true, '', 0), textMenuItem('t11', 'Notices', 'expandMenu("tst_notices")', 's', 'tst_notices', '', true, '', 0), textMenuItem('t12', 'Providers', 'expandMenu("tst_providers")', 's', 'tst_providers', '', true, '', 0), textMenuItem('t13', 'SupportiveService', 'expandMenu("tst_supportiveService")', 's', 'tst_supportiveService', '', true, '', 0), textMenuItem('t14', 'SystemAdministration', 'expandMenu("tst_sysAdmin")', 's', 'tst_sysAdmin', '', true, '', 0), textMenuItem('t15', 'Timeclock', 'expandMenu("tst_timeclock")', 's', 'tst_timeclock', '', true, '', 0), textMenuItem('t16', 'Other', 'expandMenu("tst_other")', 's', 'tst_other', '', true, '', 0) ]; caseMainLeftShArray = [textMenuItem('caseMainShShM', 'State Hearings', 'javascript:\\', 'n', 'caseMainShSh', '', true, 'mainFrame', 1) ]; altPayPrvdAccAccpArray = [textMenuItem('altPayPrvdAccAccpMACCM', 'Maintain All Stage 1 Child Care Providers (MACC)', '../action/Jump?jumpField=MACC', 'l', '', '', true, 'mainFrame', 1) ]; altPayPrvdAccPeArray = [textMenuItem('altPayPrvdAccPeICACM', 'Case Children Inquiry (ICAC)', '../action/Jump?jumpField=ICAC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdAccPeIPCAM', 'Participant Component Selection (IPCA)', '../action/Jump?jumpField=IPCA', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdAccPeIPRCM', 'Person Record Inquiry (IPRC)', '../action/Jump?jumpField=IPRC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdAccPeICASM', 'Case Information Inquiry (ICAS)', '../action/Jump?jumpField=ICAS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdAccPeMGRGM', 'Registration Maintenance (MGRG)', '../action/Jump?jumpField=MGRG', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdAccPeIEPLM', 'Participant Employment Selection (IEPL)', '../action/Jump?jumpField=IEPL', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdAccPeSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdAccPeICMSM', 'Compliance Selection (ICMS)', '../action/Jump?jumpField=ICMS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdAccPeMCAPM', 'Maintain Case Phone And Address (MCAP)', '../action/Jump?jumpField=MCAP', 'l', '', '', true, 'mainFrame', 2) ]; caseMainLeftNCompArray = [textMenuItem('caseMainNcompMcM', 'Maintain Compliance', 'javascript:\\', 'n', 'caseMainNcompMc', '', true, 'mainFrame', 1), textMenuItem('caseMainNcompRlitM', 'Review LEADER Interface Transactions', 'javascript:\\', 'n', 'caseMainNcompRlit', '', true, 'mainFrame', 2) ]; caseMainAlrtGswraaArray = [textMenuItem('caseMainAlrtGswraaSCNAM', 'Select Child Care Non-Availability (SCNA)', '../action/Jump?jumpField=SCNA', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseMainAlrtGswraaMCNAM', 'Maintain Child Care Non-Availability (MCNA)', '../action/Jump?jumpField=MCNA', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseMainAlrtGswraaSCCCM', 'Select Child Care Change (SCCC)', '../action/Jump?jumpField=SCCC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseMainAlrtGswraaMCCCM', 'Maintain Child Care Change (MCCC)', '../action/Jump?jumpField=MCCC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseMainAlrtGswraaMVDSM', 'Maintain Variable Data Screen (MVDS)', '../action/Jump?jumpField=MVDS', 'l', '', '', true, 'mainFrame', 2) ]; altPayPrvdMs1ccArray = [textMenuItem('altPayPrvdMs1ccMAOCM', 'Maintain APP Stage 1 Child Care (MAOC)', '../action/Jump?jumpField=MAOC', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdMs1ccMARPM', 'Maintain APP Record Payments (MARP)', '../action/Jump?jumpField=MARP', 'l', '', '', true, 'mainFrame', 1) ]; altPayPrvdAccIciArray = [textMenuItem('altPayPrvdAccIciMICIM', 'Maintain Intermediary Contractor Inventory (MICI)', '../action/Jump?jumpField=MICI', 'l', '', '', true, 'mainFrame', 1) ]; topLeftCmArray = [textMenuItem('caseMainLeftApM', 'Appraise Participants', 'paintScreen("caseMainLeftAp", "mainFrame")', 's', 'caseMainLeftAp', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftAaM', 'Assign Activity', 'paintScreen("caseMainLeftAa", "mainFrame")', 's', 'caseMainLeftAa', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftCcM', 'Child Care', 'paintScreen("caseMainLeftCc", "mainFrame")', 's', 'caseMainLeftCc', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftTransM', 'Transportation', 'paintScreen("caseMainLeftTrans", "mainFrame")', 's', 'caseMainLeftTrans', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftAncM', 'Ancillary', 'paintScreen("caseMainLeftAnc", "mainFrame")', 's', 'caseMainLeftAnc', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftTcM', 'Transfer Case', 'paintScreen("caseMainLeftTc", "mainFrame")', 's', 'caseMainLeftTc', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftDpM', 'Deregister Participants', 'paintScreen("caseMainLeftDp", "mainFrame")', 's', 'caseMainLeftDp', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftExemptM', 'Exemptions', 'paintScreen("caseMainLeftExempt", "mainFrame")', 's', 'caseMainLeftExempt', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftNCompM', 'Non-compliance', 'paintScreen("caseMainLeftNComp", "mainFrame")', 's', 'caseMainLeftNComp', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftMtlM', 'Maintain Time Limits', 'paintScreen("caseMainLeftMtl", "mainFrame")', 's', 'caseMainLeftMtl', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftNoteM', 'Notices', 'paintScreen("caseMainLeftNote", "mainFrame")', 's', 'caseMainLeftNote', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftAlrtM', 'Alerts', 'paintScreen("caseMainLeftAlrt", "mainFrame")', 's', 'caseMainLeftAlrt', '', true, 'mainFrame', 0), textMenuItem('caseMainLeftShM', 'State Hearings', 'paintScreen("caseMainLeftSh", "mainFrame")', 's', 'caseMainLeftSh', '', true, 'mainFrame', 0) ]; homeNoteArray = [textMenuItem('homeNoteSPNFM', 'Participant Notice File Selection (SPNF)', '../action/Jump?jumpField=SPNF', 'l', '', '', true, 'mainFrame', 2), textMenuItem('homeNoteMNOFM', 'Maintain Notice Formats (MNOF)', '../action/Jump?jumpField=MNOF', 'l', '', '', true, 'mainFrame', 2) ]; caseMainShShArray = [textMenuItem('caseMainShShIPCAM', 'Participant Component Selection (IPCA)', '../action/Jump?jumpField=IPCA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainShShIGFGM', 'GAIN Grievance/State Hearing Selection (IGFG)', '../action/Jump?jumpField=IGFG', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainShShMPRSM', 'Participant Registration (MPRS)', '../action/Jump?jumpField=MPRS', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainShShSPNFM', 'Participant Notice File Selection (SPNF)', '../action/Jump?jumpField=SPNF', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainShShSNOAM', 'NOA Notice Selection (SNOA)', '../action/Jump?jumpField=SNOA', 'l', '', '', true, 'mainFrame', 1) ]; caseAdmGssArray = [textMenuItem('caseAdmGssMALEM', 'Maintain Alerts (MALE)', '../action/Jump?jumpField=MALE', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssSAEAM', 'Ancillary Expense Authorization Selection (SAEA)', '../action/Jump?jumpField=SAEA', 'l', '', '', true, 'mainFrame', 2) ]; homeEmpArray = [textMenuItem('homeEmpIEPLM', 'Participant Employment Selection (IEPL)', '../action/Jump?jumpField=IEPL', 'l', '', '', true, 'mainFrame', 2) ]; topLeftCaArray = [textMenuItem('caseAdmLeftUcM', 'Unit Clerk', 'paintScreen("caseAdmLeftUc", "mainFrame")', 's', 'caseAdmLeftUc', '', true, 'mainFrame', 0), textMenuItem('caseAdmLeftScM', 'Scheduling Clerk', 'paintScreen("caseAdmLeftSc", "mainFrame")', 's', 'caseAdmLeftSc', '', true, 'mainFrame', 0), textMenuItem('caseAdmLeftCashM', 'Cashier', 'paintScreen("caseAdmLeftCash", "mainFrame")', 's', 'caseAdmLeftCash', '', true, 'mainFrame', 0), textMenuItem('caseAdmLeftRaM', 'Regional Administrator', 'paintScreen("caseAdmLeftRa", "mainFrame")', 's', 'caseAdmLeftRa', '', true, 'mainFrame', 0), textMenuItem('caseAdmLeftGssM', 'GAIN Services Supervisor', 'paintScreen("caseAdmLeftGss", "mainFrame")', 's', 'caseAdmLeftGss', '', true, 'mainFrame', 0), textMenuItem('caseAdmLeftGcM', 'GAIN Coordinator', 'paintScreen("caseAdmLeftGc", "mainFrame")', 's', 'caseAdmLeftGc', '', true, 'mainFrame', 0) ]; tst_appraisalArray = [textMenuItem('IAPP', 'IAPP', '../action/Jump?jumpField=IAPP&nextMapping=IAPP_I', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MGA1', 'MGA1', '../action/Jump?jumpField=MGA1&nextMapping=MGA1_I', 'l', '', '', true, 'mainFrame', 0) ]; caseMainAppArray = [textMenuItem('caseMainAppIAPPM', 'Appraisal Selection Inquiry (IAPP)', '../action/Jump?jumpField=IAPP', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainAppMTLDM', 'Maintain Learning Disability (MTLD)', '../action/Jump?jumpField=MTLD', 'l', '', '', true, 'mainFrame', 2) ]; tst_connectArray = [textMenuItem('cnct6', 'Add Appointment', '../action/ConnectJump?jumpField=add appointment&nextMapping=C01030&expectedScreen=C01030', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct7', 'Add Reminder', '../action/ConnectJump?jumpField=add reminder&nextMapping=C01280&expectedScreen=C01280', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct10', 'All Entries', '../action/ConnectJump?jumpField=calendar&nextMapping=C0306010&expectedScree n=C0306010', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct2', 'C03090 - Day', '../action/ConnectJump?jumpField=day&nextMapping=C03090&expectedScreen=C0309 0', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct4', 'C03190 - Month', '../action/ConnectJump?jumpField=month&nextMapping=C03190&expectedScreen=C03 190', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct3', 'C03350 - Week', '../action/ConnectJump?jumpField=week&nextMapping=C03350&expectedScreen=C033 50', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct5', 'C03370 - Year', '../action/ConnectJump?jumpField=year&nextMapping=C03370&expectedScreen=C033 70', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct1', 'C37000 - Menu', '../action/ConnectJump?jumpField=menu&nextMapping=C37000&expectedScreen=C370 00', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct9', 'Display Appointments', '../action/ConnectJump?jumpField=appointment&nextMapping=C0306010&expectedSc reen=C0306010', 'l', '', '', true, 'mainFrame', 0), textMenuItem('cnct8', 'Display Reminders', '../action/ConnectJump?jumpField=reminder&nextMapping=C0306010&expectedScree n=C0306010', 'l', '', '', true, 'mainFrame', 0) ]; calLearnLeftNoteArray = [textMenuItem('calLearnNoteRnM', 'Notices', 'javascript:\\', 'n', 'calLearnNoteRn', '', true, 'mainFrame', 1) ]; caseAdmHycArray = [textMenuItem('caseAdmHycRELEM', 'HY test RELE', '../action/Jump?jumpField=RELE', 'l', '', '', true, 'mainFrame', 2) ]; caseAdmRaRcArray = [textMenuItem('caseAdmRaRcMGSWM', 'GAIN Services Worker Maintenance (MGSW)', '../action/Jump?jumpField=MGSW', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmRaRcMRCCM', 'Maintain Regional Caseload Caps (MRCC)', '../action/Jump?jumpField=MRCC', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmRaRcMUAPM', 'Maintain Unassigned Appraisal Pool (MUAP)', '../action/Jump?jumpField=MUAP', 'l', '', '', true, 'mainFrame', 1) ]; caseMainTransArray = [textMenuItem('caseMainTransSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainTransIPCAM', 'Participant Component Selection (IPCA)', '../action/Jump?jumpField=IPCA', 'l', '', '', true, 'mainFrame', 1) ]; altPayPrvdAlrtGaArray = [textMenuItem('altPayPrvdAlrtGaSCNAM', 'Select Child Care Non-Availability (SCNA)', '../action/Jump?jumpField=SCNA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdAlrtGaMCNAM', 'Maintain Child Care Non-Availability (MCNA)', '../action/Jump?jumpField=MCNA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdAlrtGaSCCCM', 'Select Child Care Change (SCCC)', '../action/Jump?jumpField=SCCC', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdAlrtGaMCCCM', 'Maintain Child Care Change (MCCC)', '../action/Jump?jumpField=MCCC', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdAlrtGaIAPAM', 'Initiate APP Alerts (IAPA)', '../action/Jump?jumpField=IAPA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdAlrtGaMVDSM', 'Maintain Variable Data Screen (MVDS)', '../action/Jump?jumpField=MVDS', 'l', '', '', true, 'mainFrame', 1) ]; caseAdmCashCssoArray = [textMenuItem('caseAdmCashCssoSOPRM', 'Select Overpayment Record (SOPR)', '../action/Jump?jumpField=SOPR', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmCashCssoORACM', 'Overpayment/Repayment Accumulation (ORAC)', '../action/Jump?jumpField=ORAC', 'l', '', '', true, 'mainFrame', 1) ]; altPayPrvdAccMs2ccArray = [textMenuItem('altPayPrvdAccMs2ccMSTCM', 'Maintain Child Care Stage 2 (MSTC)', '../action/Jump?jumpField=MSTC', 'l', '', '', true, 'mainFrame', 1) ]; altPayPrvdJciArray = [textMenuItem('altPayPrvdJciMICIM', 'JRMaintain Intermediary Contractor Inventory (MICI)', '../action/Jump?jumpField=MICI', 'l', '', '', true, 'mainFrame', 1) ]; caseMainLeftAlrtArray = [textMenuItem('caseMainAlrtGswM', 'GAIN Services Worker', 'javascript:\\', 'n', 'caseMainAlrtGsw', '', true, 'mainFrame', 1), textMenuItem('caseMainAlrtGswgaaM', 'GAIN Services Worker - Generate Alerts to APP', 'javascript:\\', 'n', 'caseMainAlrtGswgaa', '', true, 'mainFrame', 1), textMenuItem('caseMainAlrtAppM', 'Alternate Payment Provider', 'javascript:\\', 'n', 'caseMainAlrtApp', '', true, 'mainFrame', 1), textMenuItem('caseMainAlrtGswraaM', 'GAIN Services Worker - Review Alerts from APP', 'javascript:\\', 'n', 'caseMainAlrtGswraa', '', true, 'mainFrame', 2), textMenuItem('caseMainAlrtAflpM', 'Adolescent Family Life Program', 'javascript:\\', 'n', 'caseMainAlrtAflp', '', true, 'mainFrame', 2) ]; altPayPrvdPeArray = [textMenuItem('altPayPrvdPeICACM', 'Case Children Inquiry (ICAC)', '../action/Jump?jumpField=ICAC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdPeIPCAM', 'Participant Component Selection (IPCA)', '../action/Jump?jumpField=IPCA', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdPeIPRCM', 'Person Record Inquiry (IPRC)', '../action/Jump?jumpField=IPRC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdPeICASM', 'Case Information Inquiry (ICAS)', '../action/Jump?jumpField=ICAS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdPeMGRGM', 'Registration Maintenance (MGRG)', '../action/Jump?jumpField=MGRG', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdPeIEPLM', 'Participant Employment Selection (IEPL)', '../action/Jump?jumpField=IEPL', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdPeSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdPeICMSM', 'Compliance Selection (ICMS)', '../action/Jump?jumpField=ICMS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('altPayPrvdPeMCAPM', 'Maintain Case Phone And Address (MCAP)', '../action/Jump?jumpField=MCAP', 'l', '', '', true, 'mainFrame', 2) ]; caseAdmGssRaaArray = [textMenuItem('caseAdmGssRaaSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssRaaSAEAM', 'Ancillary Expense Authorization Selection (SAEA)', '../action/Jump?jumpField=SAEA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssRaaMAOCM', 'Maintain APP Stage 1 Child Care (MAOC)', '../action/Jump?jumpField=MAOC', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssRaaMSTCM', 'Maintain Child Care Stage 2 (MSTC)', '../action/Jump?jumpField=MSTC', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssRaaSCCGM', 'Select Child Care Global Authorization (SCCG)', '../action/Jump?jumpField=SCCG', 'l', '', '', true, 'mainFrame', 1) ]; caseAdmCashArray = [textMenuItem('caseAdmCashSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmCashSAEAM', 'Ancillary Expense Authorization Selection (SAEA)', '../action/Jump?jumpField=SAEA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmCashSOPRM', 'Select Overpayment Record (SOPR)', '../action/Jump?jumpField=SOPR', 'l', '', '', true, 'mainFrame', 1) ]; caseMainAaAaaArray = [textMenuItem('caseMainAaAaaIASIM', 'Assessment Selection Inquiry (IASI)', '../action/Jump?jumpField=IASI', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseMainAaAaaMGARM', 'Assessment Referral Maintenance (MGAR)', '../action/Jump?jumpField=MGAR', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseMainAaAaaMNOFM', 'Maintain Notice Formats (MNOF)', '../action/Jump?jumpField=MNOF', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseMainAaAaaMGASM', 'Assessment Maintenance (MGAS)', '../action/Jump?jumpField=MGAS', 'l', '', '', true, 'mainFrame', 2) ]; caseAdmLeftCashArray = [textMenuItem('caseAdmCashIsspM', 'Issue Supportive Services Payments', 'javascript:\\', 'n', 'caseAdmCashIssp', '', true, 'mainFrame', 1), textMenuItem('caseAdmCashCssoM', 'Collect Supportive Services Overpayments', 'javascript:\\', 'n', 'caseAdmCashCsso', '', true, 'mainFrame', 1), textMenuItem('caseAdmCashIprM', 'Inquire Participant Record', 'javascript:\\', 'n', 'caseAdmCashIpr', '', true, 'mainFrame', 2) ]; caseMainLeftDpArray = [textMenuItem('caseMainDpDpM', 'Deregister Participants', 'javascript:\\', 'n', 'caseMainDpDp', '', true, 'mainFrame', 1) ]; tst_componentArray = [textMenuItem('IJST', 'IJST', '../action/Jump?jumpField=IJST&nextMapping=IJST', 'l', '', '', true, 'mainFrame', 0), textMenuItem('IPCA', 'IPCA', '../action/Jump?jumpField=IPCA&nextMapping=IPCA', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MCAT', 'MCAT', '../action/Jump?jumpField=MCAT&nextMapping=MCAT', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MCSC', 'MCSC', '../action/Jump?jumpField=MCSC&nextMapping=MCSC', 'l', '', '', true, 'mainFrame', 0), textMenuItem('SPNM', 'SPNM', '../action/Jump?jumpField=SPNM', 'l', '', '', true, 'mainFrame', 0), textMenuItem('SSTP', 'SSTP', '../action/Jump?jumpField=SSTP', 'l', '', '', true, 'mainFrame', 0) ]; homeCompArray = [textMenuItem('homeCompICMSM', 'Compliance Selection (ICMS)', '../action/Jump?jumpField=ICMS', 'l', '', '', true, 'mainFrame', 1) ]; caseAdmRaDreArray = [textMenuItem('caseAdmRaDreMGRGM', 'Registration Maintenance (MGRG)', '../action/Jump?jumpField=MGRG', 'l', '', '', true, 'mainFrame', 1) ]; topSmArray = [textMenuItem('systemMainMtlM', 'Maintenance Tools', 'javascript:\\', 'n', 'systemMainMtl', '', true, 'mainFrame', 1), textMenuItem('systemMainMppM', 'Maintain Payment to Providers', 'javascript:\\', 'n', 'systemMainMpp', '', true, 'mainFrame', 1), textMenuItem('systemMainMnM', 'Maintain Notices', 'javascript:\\', 'n', 'systemMainMn', '', true, 'mainFrame', 1), textMenuItem('systemMainMrM', 'Maintain Reports', 'javascript:\\', 'n', 'systemMainMr', '', true, 'mainFrame', 1), textMenuItem('systemMainMcM', 'Maintain Contractors', 'javascript:\\', 'n', 'systemMainMc', '', true, 'mainFrame', 2), textMenuItem('systemMainMccrM', 'Maintain Child Care Rates', 'javascript:\\', 'n', 'systemMainMccr', '', true, 'mainFrame', 2) ]; caseAdmScSaArray = [textMenuItem('caseAdmScSaMPTRM', 'Participant/GSW File Transfer (MPTR)', '../action/Jump?jumpField=MPTR', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmScSaMCTRM', 'Multiple Participant/GSW File Transfer (MCTR)', '../action/Jump?jumpField=MCTR', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmScSaMUAPM', 'Maintain Unassigned Appraisal Pool (MUAP)', '../action/Jump?jumpField=MUAP', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmScSaMNOFM', 'Maintain Notice Formats (MNOF)', '../action/Jump?jumpField=MNOF', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseAdmScSaSPNFM', 'Participant Notice File Selection (SPNF)', '../action/Jump?jumpField=SPNF', 'l', '', '', true, 'mainFrame', 1) ]; caseMainExemptRlitArray = [textMenuItem('caseMainExemptRlitSLITM', 'LEADER Txn Selection (SLIT)', '../action/Jump?jumpField=SLIT', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseMainExemptRlitMLCMM', 'Maintain Case Comment To LEADER (MLCM)', '../action/Jump?jumpField=MLCM', 'l', '', '', true, 'mainFrame', 2) ]; altPayPrvdAlrtRaArray = [textMenuItem('altPayPrvdAlrtRaMASOM', 'Maintain Stage 1 Alerts (MASO)', '../action/Jump?jumpField=MASO', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdAlrtRaMASTM', 'Maintain Stage 2 Alerts (MAST)', '../action/Jump?jumpField=MAST', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdAlrtRaSCCRM', 'Select Child Care Request (SCCR)', '../action/Jump?jumpField=SCCR', 'l', '', '', true, 'mainFrame', 1), textMenuItem('altPayPrvdAlrtRaMCCRM', 'Maintain Child Care Requests (MCCR)', '../action/Jump?jumpField=MCCR', 'l', '', '', true, 'mainFrame', 1) ]; tst_calLearnArray = [textMenuItem('CLNC', 'CLNC', '../action/Jump?jumpField=CLNC&nextMapping=CLNC', 'l', '', '', true, 'mainFrame', 0), textMenuItem('ICLE', 'ICLE', '../action/Jump?jumpField=ICLE', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MAFC', 'MAFC', '../action/Jump?jumpField=MAFC', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MAFS', 'MAFS', '../action/Jump?jumpField=MAFS', 'l', '', '', true, 'mainFrame', 0), textMenuItem('MCLS', 'MCLS', '../action/Jump?jumpField=MCLS', 'l', '', '', true, 'mainFrame', 0), textMenuItem('SAFC', 'SAFC', '../action/Jump?jumpField=SAFC', 'l', '', '', true, 'mainFrame', 0), textMenuItem('SAFS', 'SAFS', '../action/Jump?jumpField=SAFS', 'l', '', '', true, 'mainFrame', 0) ]; caseAdmLeftUcArray = [textMenuItem('caseAdmUcTcM', 'Transfer Case', 'javascript:\\', 'n', 'caseAdmUcTc', '', true, 'mainFrame', 1), textMenuItem('caseAdmUcRnspM', 'Review Notices Sent to Participant', 'javascript:\\', 'n', 'caseAdmUcRnsp', '', true, 'mainFrame', 1), textMenuItem('caseAdmUcIprM', 'Inquire Participant Record', 'javascript:\\', 'n', 'caseAdmUcIpr', '', true, 'mainFrame', 2) ]; caseAdmLeftGssArray = [textMenuItem('caseAdmGssDraM', 'Delete/Review Alerts', 'javascript:\\', 'n', 'caseAdmGssDra', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssRaaM', 'Review/Approve Authorizations', 'javascript:\\', 'n', 'caseAdmGssRaa', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssDreM', 'Deregister/Review Exemptions', 'javascript:\\', 'n', 'caseAdmGssDre', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssGswcM', 'GAIN Services Worker Caseload', 'javascript:\\', 'n', 'caseAdmGssGswc', '', true, 'mainFrame', 1), textMenuItem('caseAdmGssPartM', 'Participant', 'javascript:\\', 'n', 'caseAdmGssPart', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssNcompM', 'Non-compliance', 'javascript:\\', 'n', 'caseAdmGssNcomp', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssRtcM', 'Register/Transfer Cases', 'javascript:\\', 'n', 'caseAdmGssRtc', '', true, 'mainFrame', 2) ]; caseMainTransTiArray = [textMenuItem('caseMainTransTiIPCAM', 'Participant Component Selection (IPCA)', '../action/Jump?jumpField=IPCA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainTransTiSTRPM', 'Transportation Expense Selection (STRP)', '../action/Jump?jumpField=STRP', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainTransTiIRWIM', 'Replaced Warrant Information Inquiry (IRWI)', '../action/Jump?jumpField=IRWI', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainTransTiCATTM', 'Calculate Travel Time (CATT)', '../action/Jump?jumpField=CATT', 'l', '', '', true, 'mainFrame', 1) ]; caseMainAncAiArray = [textMenuItem('caseMainAncAiIPCAM', 'Participant Component Selection (IPCA)', '../action/Jump?jumpField=IPCA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainAncAiSAEAM', 'Ancillary Expense Authorization Selection (SAEA)', '../action/Jump?jumpField=SAEA', 'l', '', '', true, 'mainFrame', 1), textMenuItem('caseMainAncAiIRWIM', 'Replaced Warrant Information Inquiry (IRWI)', '../action/Jump?jumpField=IRWI', 'l', '', '', true, 'mainFrame', 1) ]; caseAdmGssPartArray = [textMenuItem('caseAdmGssPartIPCAM', 'Participant Component Selection (IPCA)', '../action/Jump?jumpField=IPCA', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssPartIAPPM', 'Appraisal Selection Inquiry (IAPP)', '../action/Jump?jumpField=IAPP', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssPartICASM', 'Case Information Inquiry (ICAS)', '../action/Jump?jumpField=ICAS', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssPartIPRCM', 'Person Record Inquiry (IPRC)', '../action/Jump?jumpField=IPRC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssPartMPTLM', 'Maintain Participant Time Limits (MPTL)', '../action/Jump?jumpField=MPTL', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssPartMPTCM', 'Maintain Participant Time Count (MPTC)', '../action/Jump?jumpField=MPTC', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssPartIEPLM', 'Participant Employment Selection (IEPL)', '../action/Jump?jumpField=IEPL', 'l', '', '', true, 'mainFrame', 2), textMenuItem('caseAdmGssPartIGFGM', 'GAIN Grievance/State Hearing Selection (IGFG)', '../action/Jump?jumpField=IGFG', 'l', '', '', true, 'mainFrame', 2) ]; homeTopArray = [textMenuItem('homeSsM', 'Supportive Services', 'expandMenu("homeSs")', 's', 'homeSs', '', true, 'mainFrame', 2), textMenuItem('homeEmpM', 'Employment', 'expandMenu("homeEmp")', 's', 'homeEmp', '', true, 'mainFrame', 2), textMenuItem('homePartM', 'Participant', 'expandMenu("homePart")', 's', 'homePart', '', true, 'mainFrame', 1), textMenuItem('homeSeaM', 'Search', 'expandMenu("homeSea")', 's', 'homeSea', '', true, 'mainFrame', 1), textMenuItem('homeAppM', 'Appraisal', 'expandMenu("homeApp")', 's', 'homeApp', '', true, 'mainFrame', 1), textMenuItem('homeCompM', 'Compliance', 'expandMenu("homeComp")', 's', 'homeComp', '', true, 'mainFrame', 1), textMenuItem('homeEligM', 'Eligibility', 'expandMenu("homeElig")', 's', 'homeElig', '', true, 'mainFrame', 2), textMenuItem('homeNoteM', 'Notices', 'expandMenu("homeNote")', 's', 'homeNote', '', true, 'mainFrame', 2) ]; caseMainCcAs1ccArray... [truncated message content] |
From: Muri J. (K. 11) <jos...@cr...> - 2005-01-26 13:22:07
|
Josef Muri Technology and Services KCDA 11, DMS Java Application Development Galleria P.O. Box 600 CH-8070 Z=FCrich Tel: +41 1 332 81 99 Fax: +41 1 332 44 35 mailto:jos...@cs... <mailto:jos...@cs...>=20 http://www.csfs.com <http://www.csfs.com>=20 |
From: <chr...@co...> - 2006-02-22 23:59:58
|
Hello, I am trying to download and setup htmlunit, but can't locate all required JARs. The htmlunit dependencies page seems outdated, though it was last updated 02/17/2006: commons-collections-3.1.jar http://jakarta.apache.org/commons/collections.html Should be http://jakarta.apache.org/commons/collections commons-logging-1.0.4.jar http://jakarta.apache.org/commons/logging.html Should be http://jakarta.apache.org/commons/logging/ commons-lang-2.0.jar http://jakarta.apache.org/commons/lang URL OK, but version 2.1 is available. nekohtml-0.9.5.jar http://htmlunit.sourceforge.net/ Could not find 2.2.1 API file to download. Wrong URL? saxpath-1.0-FCS.jar http://saxpath.org/ Could not find JAR. The original website is gone. xercesImpl-2.6.2.jar http://xml.apache.org/xerces2-j/index.html URL OK, but several newer versions are available. xmlParserAPIs-2.2.1.jar http://xml.apache.org/xerces2-j/index.html Could not find 2.2.1 API file to download. Same URL as xercesImpl!? So far I have found all JARs except saxpath, nekohtml, and xmlParserAPIs. Could someone please update these URLs, or point me to the JARs? Thanks, Chris |
From: <co...@ma...> - 2006-03-06 16:18:21
Attachments:
test.tar
|
Hello, <BR>After few test i send you a piece of pages . The index.htm contains the frameset.<BR>My errors occurs when I clique on a previous page redericting me to the 'index.htm'.<BR><BR>Also, if i use the page alone, i've got another error : <BR><FONT color=#ff0000 size=2> <P>6 mars 2006 16:59:41 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError</P> <P>GRAVE: runtimeError: message=[Les param�tres de la m�thode sont incorrects pour "init"] sourceName=[null] line=[0] lineSource=[null] lineOffset=[0]</P></FONT><FONT size=3>turning off the Javascript hide the error .<BR><BR>thanks for your help, I'm stopped in my process <BR><BR>Marc </FONT><BR><BR /> <BR /> ________________________________________________<BR /> Message sent using UebiMiau 2.7.8<BR /> |
From: Marc G. <mgu...@ya...> - 2006-03-08 11:13:55
|
Marc Collin Informaticien Indépendant <contact <at> marccollin.com> writes: > > Hello, After few test i send you a piece of pages . The index.htm > contains the frameset.My errors occurs when I clique on a previous page > redericting me to the 'index.htm'.Also, if i use the page alone, > i've got another error : > 6 mars 2006 16:59:41 > com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter > runtimeError > GRAVE: runtimeError: message=[Les param�tres de la m�thode > sont incorrects pour "init"] sourceName=[null] line=[0] lineSource=[null] > lineOffset=[0]turning off the Javascript hide the > error .thanks for your help, I'm stopped in my > process Marc > ________________________________________________ > Message sent using UebiMiau 2.7.8 > Attachment (test.tar): application/octet-stream, 24 KiB Salut Marc, it's not possible to test anything with the content you provided: the html files refer to a js file you didn't provide. When I remove this references and invoke the page, then everything works just fine. If you discover a problem, please take care to provide the smallest failing example you can: it spares time! Otherwise committers will have to do the job and cleanup all unnecessary stuff, and this decreases the chances of seeing the problem you've discovered quickly fixed. Marc. |
From: mat c. <mat...@gm...> - 2006-08-11 14:42:09
|
Hello I am quite new at this HTML unit thing but it seems to be quite useful, I have been trying to get an url but unfortunately i am getting this and I have no idea what it can be, maybe it is my lack of knoledge on the html api, I have been lurking a bi on the mailing lists and haven't found any similar error, does anyone knows what it could be? Thanks a lot. ADVERTENCIA: Cookie rejected: "$Version=0; 1_=; $Path=/click; $Domain= servedby.advertising.com". Illegal path attribute "/click". Path of origin: "/ctst=1/site=710882/bnum=74188/size=728090/tags=1/optn=1" java.lang.IllegalArgumentException: Invalid uri '/site=693828/bnum=%%REALRAND%%/size=728090/tags=1/optn=1': Invalid URL encoding at org.apache.commons.httpclient.HttpMethodBase.<init>( HttpMethodBase.java:219) at org.apache.commons.httpclient.methods.GetMethod.<init>( GetMethod.java:88) at com.gargoylesoftware.htmlunit.HttpWebConnection.makeHttpMethod( HttpWebConnection.java:201) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse( HttpWebConnection.java:122) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection( WebClient.java:1371) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse( WebClient.java:1329) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java :322) at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible( BaseFrame.java:129) at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage( BaseFrame.java:114) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames( HtmlPage.java:1419) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize( HtmlPage.java:143) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto( WebClient.java:440) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java :335) at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible( BaseFrame.java:129) at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage( BaseFrame.java:114) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames( HtmlPage.java:1419) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize( HtmlPage.java:143) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto( WebClient.java:440) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java :335) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java :389) at imdbscrapper.Scrapper.search(Scrapper.java:41) at imdbscrapper.Main.main(Main.java:27) |
From: mat c. <mat...@gm...> - 2006-08-11 14:43:28
|
I really apologize for the lack of subject, I still don't understand how could i left that out, again, apologies. 2006/8/11, mat cres <mat...@gm...>: > > Hello I am quite new at this HTML unit thing but it seems to be quite > useful, I have been trying to get an url but unfortunately i am getting this > and I have no idea what it can be, maybe it is my lack of knoledge on the > html api, I have been lurking a bi on the mailing lists and haven't found > any similar error, does anyone knows what it could be? > > Thanks a lot. > > ADVERTENCIA: Cookie rejected: "$Version=0; 1_=; $Path=/click; $Domain= > servedby.advertising.com". Illegal path attribute "/click". Path of > origin: "/ctst=1/site=710882/bnum=74188/size=728090/tags=1/optn=1" > java.lang.IllegalArgumentException: Invalid uri > '/site=693828/bnum=%%REALRAND%%/size=728090/tags=1/optn=1': Invalid URL > encoding > at org.apache.commons.httpclient.HttpMethodBase.<init>( > HttpMethodBase.java :219) > at org.apache.commons.httpclient.methods.GetMethod.<init>( > GetMethod.java:88) > at com.gargoylesoftware.htmlunit.HttpWebConnection.makeHttpMethod( > HttpWebConnection.java:201) > at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse ( > HttpWebConnection.java:122) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection( > WebClient.java:1371) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse( > WebClient.java :1329) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java > :322) > at > com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible( > BaseFrame.java:129) > at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage ( > BaseFrame.java:114) > at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames( > HtmlPage.java:1419) > at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize( > HtmlPage.java:143) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto ( > WebClient.java:440) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java > :335) > at > com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible( > BaseFrame.java:129) > at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage ( > BaseFrame.java:114) > at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames( > HtmlPage.java:1419) > at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize( > HtmlPage.java:143) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto ( > WebClient.java:440) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java > :335) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java > :389) > at imdbscrapper.Scrapper.search (Scrapper.java:41) > at imdbscrapper.Main.main(Main.java:27) > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > |
From: mat c. <mat...@gm...> - 2006-08-11 15:15:07
|
More info: This happens when trying to load an iframe which i really don't need, is there a way to prevent this? Regards. 2006/8/11, mat cres <mat...@gm...>: > > I really apologize for the lack of subject, I still don't understand how > could i left that out, again, apologies. > > 2006/8/11, mat cres <mat...@gm... >: > > > > Hello I am quite new at this HTML unit thing but it seems to be quite > useful, I have been trying to get an url but unfortunately i am getting this > and I have no idea what it can be, maybe it is my lack of knoledge on the > html api, I have been lurking a bi on the mailing lists and haven't found > any similar error, does anyone knows what it could be? > > Thanks a lot. > > ADVERTENCIA: Cookie rejected: "$Version=0; 1_=; $Path=/click; $Domain=servedby.advertising.com > ". Illegal path attribute "/click". Path of origin: > "/ctst=1/site=710882/bnum=74188/size=728090/tags=1/optn=1" > java.lang.IllegalArgumentException: Invalid uri > '/site=693828/bnum=%%REALRAND%%/size=728090/tags=1/optn=1': Invalid URL > encoding > at org.apache.commons.httpclient.HttpMethodBase.<init>( > HttpMethodBase.java :219) > at org.apache.commons.httpclient.methods.GetMethod.<init>( > GetMethod.java:88) > at com.gargoylesoftware.htmlunit.HttpWebConnection.makeHttpMethod( > HttpWebConnection.java:201) > at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse ( > HttpWebConnection.java:122) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection( > WebClient.java:1371) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse( > WebClient.java :1329) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java > :322) > at > com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible( > BaseFrame.java:129) > at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage ( > BaseFrame.java:114) > at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames( > HtmlPage.java:1419) > at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize( > HtmlPage.java:143) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto ( > WebClient.java:440) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java > :335) > at > com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible( > BaseFrame.java:129) > at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage ( > BaseFrame.java:114) > at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames( > HtmlPage.java:1419) > at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize( > HtmlPage.java:143) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto ( > WebClient.java:440) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java > :335) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java > :389) > at imdbscrapper.Scrapper.search (Scrapper.java:41) > at imdbscrapper.Main.main(Main.java:27) > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > |
From: Marc G. <mgu...@ya...> - 2006-08-16 09:18:59
|
Hi Mat, I think that it has nothing to do with your iframe as it but just with the cookie the server sends with it: this cookie seems to be invalid. Perhaps is it a problem on your server. A workaround possibility could be to deactive cookies. Marc. mat cres wrote: > > More info: This happens when trying to load an iframe which i really don't > need, is there a way to prevent this? > Regards. > > 2006/8/11, mat cres <mat...@gm...>: >> >> I really apologize for the lack of subject, I still don't understand how >> could i left that out, again, apologies. >> >> 2006/8/11, mat cres <mat...@gm... >: >> > >> > Hello I am quite new at this HTML unit thing but it seems to be quite >> useful, I have been trying to get an url but unfortunately i am getting >> this >> and I have no idea what it can be, maybe it is my lack of knoledge on the >> html api, I have been lurking a bi on the mailing lists and haven't found >> any similar error, does anyone knows what it could be? >> >> Thanks a lot. >> >> ADVERTENCIA: Cookie rejected: "$Version=0; 1_=; $Path=/click; >> $Domain=servedby.advertising.com >> ". Illegal path attribute "/click". Path of origin: >> "/ctst=1/site=710882/bnum=74188/size=728090/tags=1/optn=1" >> java.lang.IllegalArgumentException: Invalid uri >> '/site=693828/bnum=%%REALRAND%%/size=728090/tags=1/optn=1': Invalid URL >> encoding >> at org.apache.commons.httpclient.HttpMethodBase.<init>( >> HttpMethodBase.java :219) >> at org.apache.commons.httpclient.methods.GetMethod.<init>( >> GetMethod.java:88) >> at >> com.gargoylesoftware.htmlunit.HttpWebConnection.makeHttpMethod( >> HttpWebConnection.java:201) >> at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse ( >> HttpWebConnection.java:122) >> at >> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection( >> WebClient.java:1371) >> at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse( >> WebClient.java :1329) >> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java >> :322) >> at >> com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible( >> BaseFrame.java:129) >> at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage ( >> BaseFrame.java:114) >> at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames( >> HtmlPage.java:1419) >> at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize( >> HtmlPage.java:143) >> at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto ( >> WebClient.java:440) >> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java >> :335) >> at >> com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible( >> BaseFrame.java:129) >> at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage ( >> BaseFrame.java:114) >> at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames( >> HtmlPage.java:1419) >> at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize( >> HtmlPage.java:143) >> at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto ( >> WebClient.java:440) >> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java >> :335) >> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java >> :389) >> at imdbscrapper.Scrapper.search (Scrapper.java:41) >> at imdbscrapper.Main.main(Main.java:27) >> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> >> >> > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > -- View this message in context: http://www.nabble.com/%28no-subject%29-tf2090997.html#a5829119 Sent from the HtmlUnit - General forum at Nabble.com. |
From: jim L. <jim...@st...> - 2007-08-20 16:45:54
|
http://finance.yahoo.com/q?s=EXMT.PK |
From: Brian M. <bm...@ya...> - 2008-02-27 20:51:20
Attachments:
PVTest.jsp
|
We are trying to implement HTMLUnit at our client as part of our testing strategy. Many of our apps rely heavily on Ajax and JavaScript. I have a quick question about an issue we are running into and hopefully someone can provide an example solution :) We are trying to proof out a simple Ajax prototype using HTML unit. Basically it just submits an Ajax call and then uses innerHTML javascript to change a div value on the page. We would like to inspect the new value of this div. This is driven off a onclick even on an anchor tag. The problem is after the click event, when we inspect the div through HTMLUnit, it still contains the original value and not the new one. Below is our HTMLUnit code we are trying to use: final WebClient webClient = new WebClient(); final HtmlPage page = (HtmlPage) webClient.getPage("http://localhost:8080/test.jsp"); HtmlAnchor anchor = (HtmlAnchor) page.getAnchors().get(0); System.out.println(anchor.getOnClickAttribute()); page.executeJavaScript(anchor.getOnClickAttribute()); HtmlPage page2 = (HtmlPage) anchor.click(); HtmlElement he = page2.getHtmlElementById("testDiv"); The HTMLElement is the orininal value in this example. The sample jsp is attached if you would like to see exactly. I appreciate any help. Thanks! ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: D&J G. <djg...@gm...> - 2008-02-27 21:55:46
|
Just off the top of my head: 1. If you call anchor.click(), you shouldn't have to trigger the JavaScript manually. 2. Try using the NicelyResynchronizingAjaxController. http://mguillem.wordpress.com/2007/07/24/htmlunit-re-synchronize-ajax-calls-for-simple-deterministic-test-automation/ Regards, Daniel On Wed, Feb 27, 2008 at 3:51 PM, Brian Munter <bm...@ya...> wrote: > We are trying to implement HTMLUnit at our client as > part of our testing strategy. Many of our apps rely > heavily on Ajax and JavaScript. I have a quick > question about an issue we are running into and > hopefully someone can provide an example solution :) > > We are trying to proof out a simple Ajax prototype > using HTML unit. Basically it just submits an Ajax > call and then uses "innerHTML" javascript to change a > div value on the page. We would like to inspect the > new value of this div. This is driven off a onclick > even on an anchor tag. The problem is after the click > event, when we inspect the div through HTMLUnit, it > still contains the original value and not the new one. > Below is our HTMLUnit code we are trying to use: > > final WebClient webClient = new WebClient(); > final HtmlPage page = (HtmlPage) > webClient.getPage("http://localhost:8080/test.jsp"); > HtmlAnchor anchor = (HtmlAnchor) > page.getAnchors().get(0); > System.out.println(anchor.getOnClickAttribute()); > page.executeJavaScript(anchor.getOnClickAttribute()); > HtmlPage page2 = (HtmlPage) anchor.click(); > HtmlElement he = page2.getHtmlElementById("testDiv"); > > The HTMLElement is the orininal value in this example. > The sample jsp is attached if you would like to see > exactly. > > > I appreciate any help. Thanks! > > > > > ____________________________________________________________________________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " > http://www.w3.org/TR/html4/loose.dtd"> > > <html> > <head> > <title>PVTest</title> > > <script type="text/javascript"> > function ajaxSubmit() > { > var xmlHttp; > > if (window.XMLHttpRequest) { // Non-IE browsers > xmlHttp = new XMLHttpRequest(); > } else if (window.ActiveXObject) { // IE > xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); > } > > xmlHttp.onreadystatechange=function() > { > if(xmlHttp.readyState==4) > { > document.getElementById('testDiv').innerHTML="NEW > DATA"; > } > } > > xmlHttp.open("GET","www.yahoo.com",true); > xmlHttp.send(); > } > </script> > > </head> > > <body> > <form> > <a href="#" onclick="ajaxSubmit();">My Link</a> > <div id="testDiv">Initial Data</div> > </form> > </body> > </html> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > -- Daniel Gredler http://daniel.gredler.net/ |
From: Homoceanu S. <sa...@ya...> - 2008-03-30 00:41:17
|
Hello, In my last email I mentioned a problem with radio buttons. I have performed another test with another page, and it worked. So it is not an issue of htmlunit. I was able to step over this and I now have a question regarding an input field: <input type="text" value="" id="permalinkValue" readonly="readonly" name="permalinkValue" onkeydown="return getKey(event)" onclick="selectText('permalinkValue')" /> How can I obtain the value the field should have? Regards, Silviu ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: Bandita P. <ban...@ya...> - 2008-07-21 22:59:29
|
Hi, I am getting following errors. Jul 21, 2008 4:50:13 PM com.gargoylesoftware.htmlunit.javascript.host.Window jsxFunction_alert WARNING: window.alert("table view renderError details:table view render fileName: http://localhost:55500/nnm/js/ajax/prototype/prototype.jsjava.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPagejavaException lineNumber: 1681 name: rhinoException what does it mean by? why i am getting classcastexception? Thanks, Bandita: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPageJavaException: org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage (http://localhost:55500/nnm/js/ajax/prototype/prototype.js#1681)") no alert handler installed |
From: Marc G. <mgu...@ya...> - 2008-07-22 07:06:00
|
Hi, can you provide the full stacktrace? Which HtmlUnit version do you use? Cheers, Marc. -- Blog: http://mguillem.wordpress.com Bandita Pradhan wrote: > Hi, > > I am getting following errors. > > > Jul 21, 2008 4:50:13 PM > com.gargoylesoftware.htmlunit.javascript.host.Window jsxFunction_alert > > WARNING: window.alert("table view render > > Error details: > > table view render > > fileName: http://localhost:55500/nnm/js/ajax/prototype/prototype.js > > _ _ > > _java.lang.ClassCastException_: com.gargoylesoftware.htmlunit.html.HtmlPage > > _ _ > > _javaException_: _java.lang.ClassCastException_: > com.gargoylesoftware.htmlunit.html.HtmlPage > > lineNumber: 1681 > > name: _JavaException_ > > _rhinoException_: _org.mozilla.javascript.WrappedException_: Wrapped > _java.lang.ClassCastException_: > com.gargoylesoftware.htmlunit.html.HtmlPage > (http://localhost:55500/nnm/js/ajax/prototype/prototype.js#1681)") no > alert handler installed > > > > what does it mean by? why i am getting classcastexception? > > Thanks, > > Bandita > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: <sli...@re...> - 2009-02-08 11:29:39
|
Hi I have just started using HtmlUnit and have found it excellent so far. I have come across a problem that I hope someone might be able to help me out with. I searched the archives and the web and have not had any luck. The actual error may be from the rhino libraries but I thought I would try here first in case it was something I was doing wrong with HtmlUnit. The stack trace is as follows (the code that generates it is down further) Exception in thread "HtmlUnit Managed Thread #6 for WebWindow : XMLHttpRequest.send" org.mozilla.javascript.EcmaError: TypeError: Cannot find default value for object. (script in http://webhost/Reporter/ from (13, 32) to (106, 10)#38) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660) at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3672) at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:780) at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:699) at org.mozilla.javascript.ScriptRuntime.toString(ScriptRuntime.java:724) at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3741) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2247) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3143) at script(script in http://webhost/Reporter/ from (13, 32) to (106, 10):38) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.setState(XMLHttpRequest.java:142) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.doSend(XMLHttpRequest.java:413) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.access$000(XMLHttpRequest.java:54) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest$1.run(XMLHttpRequest.java:361) at org.mozilla.javascript.Context.call(Context.java:515) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest$2.run(XMLHttpRequest.java:367) at java.lang.Thread.run(Unknown Source) at com.gargoylesoftware.htmlunit.ThreadManager$1.run(ThreadManager.java:116) The javascript on the page that triggers the error is as follows Obviously parArr is an array of parameters and callback is the name of the function that will be called when the ajax request returns. createXMLHttpRequest() returns a browser compatible Ajax object which in this case should be XMLHttpRequest. function ajax(parArr, callback) { var http = createXMLHttpRequest(); var params = ""; for (var i=0; i<(parArr.length-1); i++) { params = params + parArr[i]+"&"; } params = params + parArr[parArr.length-1]; http.open("POST", "/Reporter/", true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", params.length); http.setRequestHeader("Connection", "close"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { this.callbackFunction(http.responseText); } } this.callbackFunction = callback || function () { alert("Missing callback function!")}; http.send(params); } >From what I can determine the ampersand in the parameters is causing the problem, when I modify the request to pass only one parameter (e.g. no ampersand) it is successful. Any help or hints would be most appreciated. I hope I have provided enough information. Thanks |
From: Ahmed A. <asa...@ya...> - 2009-02-08 19:07:01
|
Dear Sling, I am not able to reproduce. The below case succeeds by HtmlUnit with FF simulation. Are you using latest 2.4 version? Also, I believe HtmlUnit incorrectly doesn't handle "XMLHttpRequest" as IE7 does, but this is a different issue than yours. I guess the error happens during posting to the second URL, because JS error happens there, can you investigate the second page or post its html/js code? <html> <head> <script> function test() { ajax(['para1', 'para2']); } function ajax(parArr, callback) { var http = new XMLHttpRequest(); var params = ""; for (var i=0; i<(parArr.length-1); i++) { params = params + parArr[i]+"&"; } params = params + parArr[parArr.length-1]; http.open("POST", "hello2.html", true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", params.length); http.setRequestHeader("Connection", "close"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { this.callbackFunction(http.responseText); } } this.callbackFunction = callback || function () { alert("Missing callback function!")}; http.send(params); } </script> </head> <body> <input id='myButton' type=button value='ana hena' onclick='test()'><br> </body> </html> ________________________________ From: "sli...@re..." <sli...@re...> To: htm...@li... Sent: Sunday, February 8, 2009 11:17:43 PM Subject: [Htmlunit-user] (no subject) Hi I have just started using HtmlUnit and have found it excellent so far. I have come across a problem that I hope someone might be able to help me out with. I searched the archives and the web and have not had any luck. The actual error may be from the rhino libraries but I thought I would try here first in case it was something I was doing wrong with HtmlUnit. The stack trace is as follows (the code that generates it is down further) Exception in thread "HtmlUnit Managed Thread #6 for WebWindow : XMLHttpRequest.send" org.mozilla.javascript.EcmaError: TypeError: Cannot find default value for object. (script in http://webhost/Reporter/ from (13, 32) to (106, 10)#38) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660) at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3672) at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:780) at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:699) at org.mozilla.javascript.ScriptRuntime.toString(ScriptRuntime.java:724) at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3741) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2247) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3143) at script(script in http://webhost/Reporter/ from (13, 32) to (106, 10):38) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.setState(XMLHttpRequest.java:142) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.doSend(XMLHttpRequest.java:413) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.access$000(XMLHttpRequest.java:54) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest$1.run(XMLHttpRequest.java:361) at org.mozilla.javascript.Context.call(Context.java:515) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507) at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest$2.run(XMLHttpRequest.java:367) at java.lang.Thread.run(Unknown Source) at com.gargoylesoftware.htmlunit.ThreadManager$1.run(ThreadManager.java:116) The javascript on the page that triggers the error is as follows Obviously parArr is an array of parameters and callback is the name of the function that will be called when the ajax request returns. createXMLHttpRequest() returns a browser compatible Ajax object which in this case should be XMLHttpRequest. function ajax(parArr, callback) { var http = createXMLHttpRequest(); var params = ""; for (var i=0; i<(parArr.length-1); i++) { params = params + parArr[i]+"&"; } params = params + parArr[parArr.length-1]; http.open("POST", "/Reporter/", true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", params.length); http.setRequestHeader("Connection", "close"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { this.callbackFunction(http.responseText); } } this.callbackFunction = callback || function () { alert("Missing callback function!")}; http.send(params); } >From what I can determine the ampersand in the parameters is causing the problem, when I modify the request to pass only one parameter (e.g. no ampersand) it is successful. Any help or hints would be most appreciated. I hope I have provided enough information. Thanks ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: <sli...@re...> - 2009-02-08 21:49:14
|
Hi Thanks for responding so quickly. I am using HtmlUnit 2.4 and HtmlUnit-core-js-2.4. When I check the access logs the second url never even gets queried, it seems to fail somewhere in the .send(param) call. The ajax function gets called via a second function similar to your test function but instead of using an onclick it is called as from the <script> tags in the page header. e.g. <head> <script type="text/javascript"> ...ajax and test function here test(); </script> To shed some light on why the page does this in case it helps, the ajax query triggers a server based data retrieval and rendering process that can potentially take some time. To provide a friendlier user experience a "Please wait" page is loaded with the ajax request returning when the rendering is complete and alerting the user they can now download the result. Thanks > Dear Sling, > > I am not able to reproduce. The below case succeeds by HtmlUnit with FF > simulation. Are you using latest 2.4 version? > > Also, I believe HtmlUnit incorrectly doesn't handle "XMLHttpRequest" as > IE7 does, but this is a different issue than yours. > > I guess the error happens during posting to the second URL, because JS > error happens there, can you investigate the second page or post its > html/js code? > > <html> > <head> > <script> > function test() { > ajax(['para1', 'para2']); > } > > function ajax(parArr, callback) { > var http = new XMLHttpRequest(); > var params = ""; > for (var i=0; i<(parArr.length-1); i++) { > params = params + parArr[i]+"&"; > } > params = params + parArr[parArr.length-1]; > http.open("POST", "hello2.html", true); > http.setRequestHeader("Content-type", > "application/x-www-form-urlencoded"); > http.setRequestHeader("Content-length", params.length); > http.setRequestHeader("Connection", "close"); > http.onreadystatechange = function() {//Call a function when the state > changes. > if(http.readyState == 4 && http.status == 200) { > this.callbackFunction(http.responseText); > } > } > this.callbackFunction = callback || function () { alert("Missing > callback function!")}; > http.send(params); > } > </script> > </head> > <body> > <input id='myButton' type=button value='ana hena' > onclick='test()'><br> > </body> > </html> > > > > > ________________________________ > From: "sli...@re..." > <sli...@re...> > To: htm...@li... > Sent: Sunday, February 8, 2009 11:17:43 PM > Subject: [Htmlunit-user] (no subject) > > Hi > > I have just started using HtmlUnit and have found it excellent so far. I > have come across a problem that I hope someone might be able to help me > out with. I searched the archives and the web and have not had any luck. > > The actual error may be from the rhino libraries but I thought I would try > here first in case it was something I was doing wrong with HtmlUnit. > > The stack trace is as follows (the code that generates it is down further) > Exception in thread "HtmlUnit Managed Thread #6 for WebWindow : > XMLHttpRequest.send" org.mozilla.javascript.EcmaError: TypeError: Cannot > find default value for object. (script in http://webhost/Reporter/ from > (13, 32) to (106, 10)#38) > at > org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654) > at > org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632) > at > org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660) > at > org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3672) > at > org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:780) > at > org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:699) > at > org.mozilla.javascript.ScriptRuntime.toString(ScriptRuntime.java:724) > at > org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3741) > at > org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2247) > at > org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214) > at > org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3143) > at script(script in http://webhost/Reporter/ from (13, 32) to > (106, 10):38) > at > org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487) > at > org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) > at > org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) > at > com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192) > at > org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) > at > org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472) > at > com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.setState(XMLHttpRequest.java:142) > at > com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.doSend(XMLHttpRequest.java:413) > at > com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.access$000(XMLHttpRequest.java:54) > at > com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest$1.run(XMLHttpRequest.java:361) > at org.mozilla.javascript.Context.call(Context.java:515) > at > org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507) > at > com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest$2.run(XMLHttpRequest.java:367) > at java.lang.Thread.run(Unknown Source) > at > com.gargoylesoftware.htmlunit.ThreadManager$1.run(ThreadManager.java:116) > > > The javascript on the page that triggers the error is as follows > > Obviously parArr is an array of parameters and callback is the name of the > function that will be called when the ajax request returns. > createXMLHttpRequest() returns a browser compatible Ajax object which in > this case should be XMLHttpRequest. > > function ajax(parArr, callback) { > var http = createXMLHttpRequest(); > var params = ""; > for (var i=0; i<(parArr.length-1); i++) { > params = params + parArr[i]+"&"; > } > params = params + parArr[parArr.length-1]; > http.open("POST", "/Reporter/", true); > http.setRequestHeader("Content-type", > "application/x-www-form-urlencoded"); > http.setRequestHeader("Content-length", params.length); > http.setRequestHeader("Connection", "close"); > http.onreadystatechange = function() {//Call a function when the state > changes. > if(http.readyState == 4 && http.status == 200) { > this.callbackFunction(http.responseText); > } > } > this.callbackFunction = callback || function () { alert("Missing > callback function!")}; > http.send(params); > } > >>From what I can determine the ampersand in the parameters is causing the > problem, when I modify the request to pass only one parameter (e.g. no > ampersand) it is successful. > > Any help or hints would be most appreciated. I hope I have provided enough > information. > > Thanks > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com_______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Ahmed A. <asa...@ya...> - 2009-02-08 22:27:24
|
Dear Sling, I am afraid you need to provide a minimal test case that shows the error, otherwise it will be unlikey that someone else would encounter it. Yours, Ahmed ________________________________ From: "sli...@re..." <sli...@re...> To: htm...@li... Sent: Monday, February 9, 2009 9:51:24 AM Subject: Re: [Htmlunit-user] (no subject) Hi Thanks for responding so quickly. I am using HtmlUnit 2.4 and HtmlUnit-core-js-2.4. When I check the access logs the second url never even gets queried, it seems to fail somewhere in the .send(param) call. The ajax function gets called via a second function similar to your test function but instead of using an onclick it is called as from the <script> tags in the page header. e.g. <head> <script type="text/javascript"> ....ajax and test function here test(); </script> To shed some light on why the page does this in case it helps, the ajax query triggers a server based data retrieval and rendering process that can potentially take some time. To provide a friendlier user experience a "Please wait" page is loaded with the ajax request returning when the rendering is complete and alerting the user they can now download the result. Thanks |
From: Sling G. <sli...@re...> - 2009-02-12 09:30:38
|
Hi Sorry for the delay. Below is a simple class and html file that gives me the error I described. You can set the url for the post to anything it fails before the request is sent. I hope this is enough info. TestCase.class ----------------------------------------- package junittests; import java.net.URL; import org.junit.Test; import com.gargoylesoftware.htmlunit.HttpMethod; import com.gargoylesoftware.htmlunit.WebRequestSettings; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class TestCase { @Test public void test() { try { WebRequestSettings reqSet = new WebRequestSettings(new URL( "http://localhost/test.html"), HttpMethod.POST); HtmlPage page = ReporterTestHelper.webClient.getPage(reqSet); Thread.sleep(5 * 1000); System.err.println(page.getWebResponse().getContentAsString()); } catch (Exception e) { e.printStackTrace(); } } } ----------------------------------------- test.html ----------------------------------------- <html> <head> <title>Test Case</title> <script type="text/javascript"> function createXMLHttpRequest() { if (typeof XMLHttpRequest != "undefined") { return new XMLHttpRequest(); } else if (typeof ActiveXObject != "undefined") { return new ActiveXObject("Microsoft.XMLHTTP"); } else { throw new Error("XMLHttpRequest not supported"); } } function ajax(parArr, callback) { var http = createXMLHttpRequest(); var params = ""; for (var i=0; i<(parArr.length-1); i++) { params = params + parArr[i]+"&"; } params = params + parArr[parArr.length-1]; http.open("POST", "/test.html", true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", params.length); http.setRequestHeader("Connection", "close"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { this.callbackFunction(http.responseText); } } this.callbackFunction = callback || function () { alert("Missing callback function!")}; http.send(params); } function getObjectByID(elmID) { if(document.getElementById) {elmID = document.getElementById(elmID);} else if(document.all) {elmID = document.all[elmID];} else if(document.layers) {elmID = this._getLayer(elmID);} else if(document.forms) { if(document.forms[elmID]) {elmID = document.forms[elmID];} else { for(var i=0; i<document.forms.length; i++) { if(document.forms[i][elmID]) { elmID = document.forms[i][elmID]; break; } } } } else {elmID = null;} return elmID; } function callback(data){ var obj = getObjectByID('testbtn'); obj.disabled=false; } ajax(['ACTION=99','TEST=22'], callback); </script> </head> <body> Test Case<br /> <button disabled="true" id="testbtn">Get It</button> </body> </html> ----------------------------------------- Thanks Sling > Dear Sling, > > I am afraid you need to provide a minimal test case that shows the error, > otherwise it will be unlikey that someone else would encounter it. > > Yours, > Ahmed > > ________________________________ > From: "sli...@re..." > <sli...@re...> > To: htm...@li... > Sent: Monday, February 9, 2009 9:51:24 AM > Subject: Re: [Htmlunit-user] (no subject) > > Hi > > Thanks for responding so quickly. I am using HtmlUnit 2.4 and > HtmlUnit-core-js-2.4. When I check the access logs the second url never > even gets queried, it seems to fail somewhere in the .send(param) call. > > The ajax function gets called via a second function similar to your test > function but instead of using an onclick it is called as from the <script> > tags in the page header. e.g. > > <head> > <script type="text/javascript"> > ....ajax and test function here > > test(); > </script> > > To shed some light on why the page does this in case it helps, the ajax > query triggers a server based data retrieval and rendering process that > can potentially take some time. To provide a friendlier user experience a > "Please wait" page is loaded with the ajax request returning when the > rendering is complete and alerting the user they can now download the > result. > > Thanks > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com_______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Ahmed A. <asa...@ya...> - 2009-02-12 10:09:42
|
Dear Sling, Strangely, no errors from SVN version!! Please use latest snapshot from http://build.canoo.com/htmlunit/artifacts, and advise. Yours, Ahmed ________________________________ From: Sling Gatsby <sli...@re...> To: htm...@li... Sent: Thursday, February 12, 2009 12:13:14 PM Subject: Re: [Htmlunit-user] Ajax javascript errors Hi Sorry for the delay. Below is a simple class and html file that gives me the error I described. You can set the url for the post to anything it fails before the request is sent. I hope this is enough info. TestCase.class ----------------------------------------- package junittests; import java.net.URL; import org.junit.Test; import com.gargoylesoftware.htmlunit.HttpMethod; import com.gargoylesoftware.htmlunit.WebRequestSettings; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class TestCase { @Test public void test() { try { WebRequestSettings reqSet = new WebRequestSettings(new URL( "http://localhost/test.html"), HttpMethod.POST); HtmlPage page = ReporterTestHelper.webClient.getPage(reqSet); Thread.sleep(5 * 1000); System.err.println(page.getWebResponse().getContentAsString()); } catch (Exception e) { e.printStackTrace(); } } } ----------------------------------------- test.html ----------------------------------------- <html> <head> <title>Test Case</title> <script type="text/javascript"> function createXMLHttpRequest() { if (typeof XMLHttpRequest != "undefined") { return new XMLHttpRequest(); } else if (typeof ActiveXObject != "undefined") { return new ActiveXObject("Microsoft.XMLHTTP"); } else { throw new Error("XMLHttpRequest not supported"); } } function ajax(parArr, callback) { var http = createXMLHttpRequest(); var params = ""; for (var i=0; i<(parArr.length-1); i++) { params = params + parArr[i]+"&"; } params = params + parArr[parArr.length-1]; http.open("POST", "/test.html", true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", params.length); http.setRequestHeader("Connection", "close"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { this.callbackFunction(http.responseText); } } this..callbackFunction = callback || function () { alert("Missing callback function!")}; http.send(params); } function getObjectByID(elmID) { if(document.getElementById) {elmID = document.getElementById(elmID);} else if(document.all) {elmID = document..all[elmID];} else if(document.layers) {elmID = this._getLayer(elmID);} else if(document.forms) { if(document.forms[elmID]) {elmID = document.forms[elmID];} else { for(var i=0; i<document.forms.length; i++) { if(document.forms[i][elmID]) { elmID = document.forms[i][elmID]; break; } } } } else {elmID = null;} return elmID; } function callback(data){ var obj = getObjectByID('testbtn'); obj.disabled=false; } ajax(['ACTION=99','TEST=22'], callback); </script> </head> <body> Test Case<br /> <button disabled="true" id="testbtn">Get It</button> </body> </html> ----------------------------------------- Thanks Sling |
From: Sling G. <sli...@re...> - 2009-02-12 10:47:51
|
Hi Ahmed Using htmlunit-2.5-SNAPSHOT.jar worked with no errors. I will test in my real world tests and advise if that resolves it. I am still using the 2.4 core-js package, should I be using a later version of that as well? Thanks for your help! Sling > Dear Sling, > > Strangely, no errors from SVN version!! > > Please use latest snapshot from http://build.canoo.com/htmlunit/artifacts, > and advise. > > Yours, > Ahmed > > ________________________________ > From: Sling Gatsby <sli...@re...> > To: htm...@li... > Sent: Thursday, February 12, 2009 12:13:14 PM > Subject: Re: [Htmlunit-user] Ajax javascript errors > > Hi > > Sorry for the delay. Below is a simple class and html file that gives me > the error I described. You can set the url for the post to anything it > fails before the request is sent. > > I hope this is enough info. > > TestCase.class > ----------------------------------------- > package junittests; > > import java.net.URL; > > import org.junit.Test; > > import com.gargoylesoftware.htmlunit.HttpMethod; > import com.gargoylesoftware.htmlunit.WebRequestSettings; > import com.gargoylesoftware.htmlunit.html.HtmlPage; > > public class TestCase { > > @Test > public void test() { > try { > WebRequestSettings reqSet = new WebRequestSettings(new URL( > "http://localhost/test.html"), HttpMethod.POST); > HtmlPage page = ReporterTestHelper.webClient.getPage(reqSet); > Thread.sleep(5 * 1000); > > System.err.println(page.getWebResponse().getContentAsString()); > } catch (Exception e) { > e.printStackTrace(); > } > > } > > } > ----------------------------------------- > > test.html > ----------------------------------------- > <html> > <head> > <title>Test Case</title> > <script type="text/javascript"> > > > function createXMLHttpRequest() { > if (typeof XMLHttpRequest != "undefined") { > return new XMLHttpRequest(); > } else if (typeof ActiveXObject != "undefined") { > return new ActiveXObject("Microsoft.XMLHTTP"); > } else { > throw new Error("XMLHttpRequest not supported"); > } > } > > function ajax(parArr, callback) { > var http = createXMLHttpRequest(); > var params = ""; > for (var i=0; i<(parArr.length-1); i++) { > params = params + parArr[i]+"&"; > } > params = params + parArr[parArr.length-1]; > http.open("POST", "/test.html", true); > http.setRequestHeader("Content-type", > "application/x-www-form-urlencoded"); > http.setRequestHeader("Content-length", params.length); > http.setRequestHeader("Connection", "close"); > http.onreadystatechange = function() {//Call a function when the > state changes. > if(http.readyState == 4 && http.status == 200) { > this.callbackFunction(http.responseText); > } > } > this..callbackFunction = callback || function () { alert("Missing > callback function!")}; > http.send(params); > } > > function getObjectByID(elmID) { > if(document.getElementById) {elmID = document.getElementById(elmID);} > else if(document.all) {elmID = document..all[elmID];} > else if(document.layers) {elmID = this._getLayer(elmID);} > else if(document.forms) { > if(document.forms[elmID]) {elmID = document.forms[elmID];} > else { > for(var i=0; i<document.forms.length; i++) { > if(document.forms[i][elmID]) { > elmID = document.forms[i][elmID]; > break; > } > } > } > } > else {elmID = null;} > return elmID; > } > > function callback(data){ > var obj = getObjectByID('testbtn'); > obj.disabled=false; > } > > ajax(['ACTION=99','TEST=22'], callback); > </script> > </head> > <body> > Test Case<br /> > <button disabled="true" id="testbtn">Get It</button> > </body> > </html> > ----------------------------------------- > > Thanks > > Sling > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com_______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Ahmed A. <asa...@ya...> - 2009-02-12 10:56:15
|
Dear Sling, For core-js, there is no changes since 2.4, you can use it safely. Yours, Ahmed ________________________________ From: Sling Gatsby <sli...@re...> To: htm...@li... Sent: Thursday, February 12, 2009 1:46:52 PM Subject: Re: [Htmlunit-user] Ajax javascript errors Hi Ahmed Using htmlunit-2.5-SNAPSHOT.jar worked with no errors. I will test in my real world tests and advise if that resolves it. I am still using the 2.4 core-js package, should I be using a later version of that as well? Thanks for your help! Sling |
From: J. S. <the...@gm...> - 2009-03-05 15:05:26
|
Hi Daniel, 1. Unfortunately, I need the scripts on the webpage itself, just not the remote scripts (as they are mostly ad junk and such) 2. Already did that. Still getting exceptions. 3. I'll have to look into that. I don't know anything at all about XPath yet, any advice on what to read ? _____ Von: Daniel Gredler [mailto:djg...@gm...] Gesendet: Thursday, March 05, 2009 3:08 PM An: htm...@li... Betreff: Re: [Htmlunit-user] Three questions - exceptions,tree navigating and loading of external resources Hi J, 1. Images are never downloaded, except in rare corner cases; external JS files are not downloaded if you disable JS on the WebClient; external CSS files are not downloaded if you disable CSS on the WebClient. 2. WebClient.setThrowExceptionOnScriptError(false) 3. Not sure about you exact scenario, but DomNode.getByXPath() and DomNode.getFirstByXPath() are your friends. XPath can be bent to satisfy most needs :-) Take care, Daniel On Thu, Mar 5, 2009 at 5:16 AM, J. Stoever <the...@gm... <blocked::mailto:the...@gm...> > wrote: Hi, I couldn't find the answer to either of this via Google & Co: External resources: is there a way to prevent WebClient from loading external resources such as images and external scripts ? Exceptions: I sometimes get long exceptions from scripts that don't run well. I don't really care about those, since in my case they don't require any reaction on my part, so I would like to quiet them, but I can't figure out how. Ideas ? Tree navigating: I'm trying to find a way to, for example, get a list of all top level tables, then select one of those tables, get a list of all it's subtables, and so on. Unfortuneately, I have only found ways to search for ALL children, so my first request returns ALL tables, not just top level tables. Any ideas ? ---------------------------------------------------------------------------- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H <blocked::http://p.sf.net/sfu/XcvMzF8H> _______________________________________________ Htmlunit-user mailing list Htm...@li... <blocked::mailto:Htm...@li...> https://lists.sourceforge.net/lists/listinfo/htmlunit-user <blocked::https://lists.sourceforge.net/lists/listinfo/htmlunit-user> -- Daniel Gredler http://daniel.gredler.net/ <blocked::http://daniel.gredler.net/> |
From: Daniel G. <djg...@gm...> - 2009-03-05 17:23:05
|
Hi J, 1. You might be able to use a falsifying web connection to replace the content of all external JS files with empty strings; you'll still be downloading the files (bad), but HtmlUnit will just execute your empty string, rather than the real JS (good). http://www.nabble.com/What%27s-the-prop-way-to-modify-a-web-response-content-before-htmlunit-constructs-the-page--td21831497.html 2. Post some stack traces, because you shouldn't be getting exceptions thrown in that case. 3. No, just Google it... XPath has been around for a while, so there are tons of miscellaneous resources online. Take care, Daniel On Thu, Mar 5, 2009 at 10:05 AM, J. Stoever <the...@gm...> wrote: > Hi Daniel, > > 1. Unfortunately, I need the scripts on the webpage itself, just not the > remote scripts (as they are mostly ad junk and such) > > 2. Already did that. Still getting exceptions. > > 3. I'll have to look into that. I don't know anything at all about XPath > yet, any advice on what to read ? > > ------------------------------ > *Von:* Daniel Gredler [mailto:djg...@gm...] > *Gesendet:* Thursday, March 05, 2009 3:08 PM > *An:* htm...@li... > *Betreff:* Re: [Htmlunit-user] Three questions - exceptions,tree > navigating and loading of external resources > > Hi J, > > 1. Images are never downloaded, except in rare corner cases; external JS > files are not downloaded if you disable JS on the WebClient; external CSS > files are not downloaded if you disable CSS on the WebClient. > > 2. WebClient.setThrowExceptionOnScriptError(false) > > 3. Not sure about you exact scenario, but DomNode.getByXPath() and > DomNode.getFirstByXPath() are your friends. XPath can be bent to satisfy > most needs :-) > > Take care, > > Daniel > > > > On Thu, Mar 5, 2009 at 5:16 AM, J. Stoever <the...@gm...> wrote: > >> Hi, >> >> I couldn't find the answer to either of this via Google & Co: >> >> External resources: is there a way to prevent WebClient from loading >> external resources such as images and external scripts ? >> >> Exceptions: I sometimes get long exceptions from scripts that don't run >> well. I don't really care about those, since in my case they don't require >> any reaction on my part, so I would like to quiet them, but I can't figure >> out how. Ideas ? >> >> Tree navigating: I'm trying to find a way to, for example, get a list of >> all top level tables, then select one of those tables, get a list of all >> it's subtables, and so on. Unfortuneately, I have only found ways to search >> for ALL children, so my first request returns ALL tables, not just top level >> tables. Any ideas ? >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > -- > Daniel Gredler > http://daniel.gredler.net/ > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > -- Daniel Gredler http://daniel.gredler.net/ |