Tested JREs : 1.4.2_X, 1.5.0_XX, 1.6.0_XX
Problem description:
--------------------
With legacy_lifecycle PARAM, set to true liveconnect calls fails to work once browser is refreshed. Following exception is getting thrown when applets makes a Liveconnect call after refresh operation.
netscape.javascript.JSException: Native DOM object has been released
at sun.plugin.javascript.ocx.JSObject.checkValidity(Unknown Source)
at sun.plugin.javascript.ocx.JSObject.invoke(Unknown Source)
at sun.plugin.javascript.ocx.JSObject.getMember(Unknown Source)
at JSBlinkText.setString(JSBlinkText.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
java.lang.Exception: netscape.javascript.JSException: Native DOM object has been released
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
Steps to reproduce:
-----------------
1) Try to load the following applet inside IE and firefox browser
http://sqeweb/deployment2/jitu/plug-bug/ojiliveconnect/src/JSBlinkText_legacy.html
2) Type some text inside the displayed textField
3) Click "Change Text", blinking text should get changed
4) Repeat #2 and #3 as many times as you like and each time one can notice blinking text is getting changed
5) Refresh the applet, and try to repeat steps #2 and #3. If above mentioned exception is getting thrown then bug is reproduced
http://sqeweb/deployment2/jitu/plug-bug/ojiliveconnect/src/JSBlinkText_legacy.html