On Fri, Sep 16, 2011 at 6:10 AM, Frieda Reichsman <[email protected]> wrote:

> Great news that this works.
>
> Bob, it seems to me that the useCommandThread mechanism for setting up
> threads somehow avoids the need for Java to do a reverse DNS lookup, which
> is the process that triggers the error. Is that right?
>

Wouldn't that be nice. I don't know, and I don't know how to find out. What
it does is distinguish between the thread that started the applet and the
thread that executes in response to a user action such as clicking a button.
"UseCommandThread" transfers all commands that do not include the  Jmol
"javascript" command to the thread that started the applet.

The fact that the signed applet (which uses this by default) has worked
flawlessly for so long suggests that this works.


Paul, could you try a couple of additional tests?

In each case, from both the Jmol console and from a user clicking a button
on a page, with and without "useCommandThread":

load "somefile"
load "somefile"; javascript "alert('done')"
load "somefile";/*SPLIT*/;javascript "alert('done')"
load "somefile"; #javascript


See if they all work, or only some of these work. Because the different
threads have different requirements, and these special words influence
which  thread is being used when using a command thread.

Bob


>
> Frieda
>
>
> On Sep 16, 2011, at 12:52 AM, Paul Pillot wrote:
>
> > We are in luck : it now works ! (both online and for localhost)
> > Thanks Bob
> >
> > Paul
> >
> > Le 15 sept. 2011 à 23:51, Robert Hanson a écrit :
> >
> >> OK, maybe we are in luck. Try:
> >>
> >> jmolSetParameter("useCommandThread", "TRUE")
> >>
> >> just before your jmolApplet() call.
> >>
> >> This forces the unsigned applet to use the same general mechanism as the
> signed applet for setting up threads. It's a bit more complicated, but it is
> now well tested in the signed applet and just might be necessary now in the
> unsigned one as well.
> >>
> >> Bob
> >>
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> > http://p.sf.net/sfu/rim-devcon-copy2
> > _______________________________________________
> > Jmol-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to