I get the following error when I use WebTestCase. The same class runs
ok without WebTestCase. However, I have to use webtestcase. Anybody has
ever got this error? Any suggestion is highly appreciated.
Thanks to every one for my previous question's clarification regarding checkRadioButton option in WebTestCase.
------------- Standard Error -----------------
java.lang.reflect.InvocationTargetException
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at com.meterware.httpunit.parsing.NekoHTMLParser.parse(NekoHTMLParser.java:55)
at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:272)
at com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:945)
at com.meterware.httpunit.WebResponse.access$100(WebResponse.java:49)
at com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:566)
at com.meterware.httpunit._javascript_._javascript_$Window.initialize(_javascript_.java:401)
at com.meterware.httpunit._javascript_._javascript_.run(_javascript_.java:80)
at com.meterware.httpunit._javascript_._javascript_EngineFactory.associate(_javascript_EngineFactory.java:46)
at com.meterware.httpunit.FrameHolder.<init>(FrameHolder.java:44)
at com.meterware.httpunit.WebWindow.<init>(WebWindow.java:202)
at com.meterware.httpunit.WebClient.<init>(WebClient.java:51)
at com.meterware.httpunit.WebConversation.<init>(WebConversation.java:46)
at net.sourceforge.jwebunit.HttpUnitDialog.initWebConversation(HttpUnitDialog.java:60)
at net.sourceforge.jwebunit.HttpUnitDialog.<init>(HttpUnitDialog.java:51)
at net.sourceforge.jwebunit.WebTester.beginAt(WebTester.java:58)
at net.sourceforge.jwebunit.WebTestCase.beginAt(WebTestCase.java:42)
at com.real.app.ebitest.ReaderTestClient.testSystemPropertyReader(ReaderTestClient.java:19)
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 junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1061)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:676)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1413)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:633)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
------------- ---------------- ---------------
Testcase: testSystemPropertyReader took 0.906 sec
Caused an ERROR
java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.meterware.httpunit._javascript_._javascript_EngineFactory.associate(_javascript_EngineFactory.java:51)
at com.meterware.httpunit.FrameHolder.<init>(FrameHolder.java:44)
at com.meterware.httpunit.WebWindow.<init>(WebWindow.java:202)
at com.meterware.httpunit.WebClient.<init>(WebClient.java:51)
at com.meterware.httpunit.WebConversation.<init>(WebConversation.java:46)
at net.sourceforge.jwebunit.HttpUnitDialog.initWebConversation(HttpUnitDialog.java:60)
at net.sourceforge.jwebunit.HttpUnitDialog.<init>(HttpUnitDialog.java:51)
at net.sourceforge.jwebunit.WebTester.beginAt(WebTester.java:58)
at net.sourceforge.jwebunit.WebTestCase.beginAt(WebTestCase.java:42)
at com.real.app.ebitest.ReaderTestClient.testSystemPropertyReader(ReaderTestClient.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--
Regards,
Sayeem
Ph: 408 480-6760
- Re: [Jwebunit-users] InvocationTargetException E... Sayeem Ahmed
- Re: [Jwebunit-users] InvocationTargetExcept... Martijn Dashorst
- Re: [Jwebunit-users] InvocationTargetEx... Sayeem Ahmed
- Re: [Jwebunit-users] InvocationTarg... Nicholas Neuberger - Home
