在我的applet中,我希望通过浏览器通过
进行通信win = (JSObject) JSObject.getWindow(this);
此行在applet的 init()方法中调用。
第一次一切正常,在流程页面结束时重新加载并破坏applet。但是第二次 win 对象似乎不可用,事实上如果我尝试访问它我获得
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
at sun.plugin2.message.Pipe$2.run(Unknown Source)
at com.sun.deploy.util.Waiter$1.wait(Unknown Source)
at com.sun.deploy.util.Waiter.runAndWait(Unknown Source)
at sun.plugin2.message.Pipe.receive(Unknown Source)
at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
at sun.plugin2.main.client.MessagePassingJSObject.eval(Unknown Source)