vopdcteam team mailing list archive
-
vopdcteam team
-
Mailing list archive
-
Message #00028
[Bug 532188] Re: 1.5rc2 applet fails to launch when running in Safari
there's a lot of discussion here about the quirks associated with hidden applets - hope it[s some use to you.
http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/
wonder if this is relevant too...
http://stackoverflow.com/questions/1211342/signed-java-applet-doesnt-
get-permissions-in-safari
apparently, deadlocks are a problem when calling from java to javascript and back
from :http://swinglabs.org/docs/presentations/2007/Iris/iris_mixing_secrets.jsp
"Beware of Deadlocks
When integrating web pages with Applets, there is one major issue you
must be aware of. Since the javascript engine of the browser is single
threaded, you must be careful not to cause deadlocks when calling
between Java and Javascript. Whenever you make a call from
Java->Javascript or from Javascript->Java, it must be an asynchronous
call. On the Java side, be sure not to block the calling thread.
An easy way to avoid deadlocks is to use the following recipe:
On all calls into Java, on the Java end, wrap the logic of the method in a SwingUtilities.invokeLater() call.
The method signatures of all methods in Java called from Javascript should return void. This helps to keep you honest.
If you are careful and know what you are doing, you could have some methods in Java that return a value immediately. But be careful!
"
--
1.5rc2 applet fails to launch when running in Safari
https://bugs.launchpad.net/bugs/532188
You received this bug notification because you are a member of VO-PDC
Team, which is subscribed to WebSampConnector.
Status in VO-PDC WebSampConnector: New
Bug description:
I've integrated WebSampConnector with my website (http://astrogrid.roe.ac.uk/ravioli/). I'm using the latest 1.5rc2 version (as the documentation seems to be referring to this).
After unzipping the distro, if I open the 'demo.html' from from disk with firefox, then the demo works find, and I can connect to a hub.
However, if I do the same with Safari, the demo fails. In particular, the 'applet launch' dialogue does not appear. But, if I do the same with the 1.5 distro(downloaded from the voparis website, not launchpad), this launches the applet and connects to the hub fine.
References