Thanks Martin for your support. I appreciate it. I will let you know if any luck comes out.

Regards,
Sayeem

On 6/22/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
Sayeem,

There are 2 possibilities that come to mind:
1. Fork your test: ant and junit have some troubles running in the same
virtual machine. By forking you will create a new environment for the
tests to run in.
2. It seems that the xerces version used is not valid. Try adding the
xerces-2.6.2.jar to the bootclasspath.

My take on the best course of action is to try option 1 first, then 2.

Martijn


Sayeem Ahmed wrote:

> 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




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users



--
Regards,
Sayeem
Ph: 408  480-6760

Reply via email to