Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6261184

java applet loaded with exceptions in mozilla

XMLWordPrintable

    • sparc
    • solaris_10

      This bug is reproducible on both Jdk1.5.0_01 b08 and jdk1.5.0_02 b09, on S10U1 build 05.

      The following exceptions printed on the Java Console:

      java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:204)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:183)
      at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
      at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:35)
      at sun.plugin.navig.motif.AThread.run(AThread.java:27)
      Caused by: java.lang.reflect.InvocationTargetException
      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:585)
      at sun.plugin.javascript.invoke.JSInvoke.invoke(JSInvoke.java:19)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.plugin.javascript.JSClassLoader.invoke(JSClassLoader.java:44)
      at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(SecureInvocation.java:572)
      ... 7 more
      Caused by: netscape.javascript.JSException
      at netscape.javascript.JSObject.getWindow(JSObject.java:141)
      at JavaDog.setMem(JavaDog.java:12)
      ... 17 more

      reproduce steps:
      1. Start mozilla
      2. load applet http://baseman.prc/Basicfunction/liveconnect/test2/jsJAVA.html
      3. press the button "Eval javascript using JSObject"
      4. load applet http://baseman.prc/Basicfunction/liveconnect/javatoscript/javatoscript/JavaDog.html
      5. click the gabby's new color first, don't wait until it released
      6. click the gabby's old color

      Then the above exceptions are in the Java Console.

      Note: the exception will not appear if the first applet is not loaded first. And it is only reproducible on the first time load the second applet.
      ###@###.### 2005-04-26 04:36:25 GMT

            dtitov Daniil Titov (Inactive)
            qqcheng Qing-Hua Cheng (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: