Mozilla Javascript exception while running in junit.swingui.TestRunner
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Richard_Perng
Posted On:   Tuesday, November 12, 2002 02:36 PM

When I ran the basic httpunit example "ExampleTest" in junit.swingui.TestRunner I get the following error: java.lang.ExceptionInInitializerError: java.lang.ClassCastException: org.mozilla.javascript.optimizer.InvokerImpl at org.mozilla.javascript.FunctionOjbect.newInvokerMaster(Unknown Source) at org.mozilla.javascript.FunctionObject. (Unknown Source) at org.mozilla.javascript.LazilyLoadedCtor. (Unknown Source) at org.mozilla.javascript.Context.initStandardObjects(Unknown Source) at org.mozilla.javascript.Context.initStandardObjects(Unknown Source) at com.meterware.httpunit.javascript.JavaScript.run(Javascript.java:76) ... If I run this exact same t   More>>

When I ran the basic httpunit example "ExampleTest" in junit.swingui.TestRunner I get the following error:

			
java.lang.ExceptionInInitializerError: java.lang.ClassCastException: org.mozilla.javascript.optimizer.InvokerImpl
at org.mozilla.javascript.FunctionOjbect.newInvokerMaster(Unknown Source)
at org.mozilla.javascript.FunctionObject. (Unknown Source)
at org.mozilla.javascript.LazilyLoadedCtor. (Unknown Source)
at org.mozilla.javascript.Context.initStandardObjects(Unknown Source)
at org.mozilla.javascript.Context.initStandardObjects(Unknown Source)
at com.meterware.httpunit.javascript.JavaScript.run(Javascript.java:76)
...


If I run this exact same test with junit.textui.TestRunner, I get standard "404 not found" errors.



Wondering if anybody encountered the same problem, and if so, how was it solved.

   <<Less
About | Sitemap | Contact