I am having problems with some browsers running the load "" command
from Jmol.js utilities. For example, the minimal test file
http://scripts.iucr.org/bm/test.html has a jmolMenu with a
few entries such as 
   load "" {444 666 1};

When I run this on Windows Safari 3.1, I get a file error showing
up in the Jmol applet window:

java.security.AccessControlException: access denied
  (java.net.SocketPermission scripts.iucr.org resolve)

I can successfully run the same command direct from the java console,
or by right-clicking the applet menu under Symmetry.

Seems like a Safari and/or Java problem (though I don't see this issue
with Firefox running the same Sun JVM 1.6.0_05 on my machine).

I know Windows Safari is a minority taste, but I gather Mac users
are seeing these problems on Safari and possibly also on Firefox.
(I don't have a Mac so am testing under Windows Vista.)

I'd welcome any insight into why this might be happening, and what
might be done to cure it.

Thanks
Brian

PS: In case it helps, here's the Java cosole log for two runs, one
using the in-applet menu, the second using the jmolMenu function:

>>>>>>>>>>>>>>>>> SUCCESSFUL CALL FROM APPLET MENU:
Eval.instructionDispatchLoop():1208522712971
Eval
 pc:0
4 statements
----
Token[keyword(0x11c) intValue=19(0x13) value="save"]
Token[keyword(0x4004f) value="orientation"]

----
Token[keyword(0x1081109) intValue=16(0x10) value="load"]
Token[string(0x4) value=""]
Token[keyword(0x80003) value="{"]
Token[integer(0x2) intValue=444(0x1bc) value="444"]
Token[integer(0x2) intValue=666(0x29a) value="666"]
Token[integer(0x2) intValue=1(0x1) value="1"]
Token[keyword(0x80004) value="}"]

----
Token[keyword(0x168) intValue=19(0x13) value="restore"]
Token[keyword(0x4004f) value="orientation"]

----
Token[keyword(0x304) intValue=16(0x10) value="center"]

END
Token[keyword(0x11c) intValue=19(0x13) value="save"] Token[keyword(0x4004f) 
value="orientation"]
Token[keyword(0x1081109) intValue=16(0x10) value="load"] "" { 444 666 1 }
Successfully loaded:http://scripts.iucr.org/bm/test.cif
Token[keyword(0x168) intValue=19(0x13) value="restore"] Token[keyword(0x4004f) 
value="orientation"]
Token[keyword(0x304) intValue=16(0x10) value="center"]
Jmol script terminated



>>>>>>>>>>>>>>>>> UNSUCCESSFUL CALL FROM jmolMenu():
Eval.instructionDispatchLoop():1208522722450
Eval
 pc:0
1 statements
----
Token[keyword(0x1081109) intValue=16(0x10) value="load"]
Token[string(0x4) value=""]
Token[keyword(0x80003) value="{"]
Token[integer(0x2) intValue=444(0x1bc) value="444"]
Token[integer(0x2) intValue=666(0x29a) value="666"]
Token[integer(0x2) intValue=1(0x1) value="1"]
Token[keyword(0x80004) value="}"]

END
Token[keyword(0x1081109) intValue=16(0x10) value="load"] "" { 444 666 1 }
File Error:java.security.AccessControlException: access denied 
(java.net.SocketPermission scripts.iucr.org resolve)
script ERROR: java.security.AccessControlException: access denied 
(java.net.SocketPermission scripts.iucr.org resolve)
----line 1 command 1 of file null:
         Token[keyword(0x1081109) intValue=16(0x10) value="load"] "" { 444 666 
1 >> } <<
Script completed
Jmol script terminated


_________________________________________________________________________
Brian McMahon                                       tel: +44 1244 342878
Research and Development Officer                    fax: +44 1244 314888
International Union of Crystallography            e-mail:  [EMAIL PROTECTED]
5 Abbey Square, Chester CH1 2HU, England

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to