Menu

#1 Class cast exception

open
nobody
None
5
2002-08-26
2002-08-26
Eyon M Land
No

Using WATF 1.1...

When I try to create a new Window by using
newWindow() of a Session object I get the following
error...
java.lang.ExceptionInInitializerError:
java.lang.ClassCastException:
org.mozilla.javascript.optimizer.InvokerImpl

Note that this does not happen when I run standalone
through a main(...). It only happens if I execute the
newWindow() from within a TestCase of JUnit.

Discussion

  • Eyon M Land

    Eyon M Land - 2002-08-26

    Logged In: YES
    user_id=600899

    correction... it happens when I try and create a Session
    object not when I invoke the newWindow() method. My
    guess is that there is some kind of multithread issue using
    Rhino? This error occurrs when I try to execute a TestCase
    from junit.swingui.TestRunner.

     
  • Leonid Kuoza

    Leonid Kuoza - 2002-09-05

    Logged In: YES
    user_id=450572

    This is a rhino bug. I posted it to rhino. If I will find a solution I
    will send rhino developers a patch.

     

Log in to post a comment.