See also startup.txt and memory.txt and pdbid.txt ---------------- FG 3.0: When an unavailable PDB code is specified in http://files.rcsb.org/download/1abc.pdb RCSB replies with an html file saying "404 Not Found". jmolLoadStructCallback is assigned to loadStructCallback in fg.htm IN MSGCALL.JS: jmolLoadStructCallback() in consurf/msgcall.js calls announceNoPDB() [it IS being used] which calls showHelp('makeBadPDBFileHelp()') makeBadPDBFileHelp() (help.js) says the PDB file is not available. For a file NOT available, jmolLoadStructCallback() in Firefox msgcall.js #13 jmolLoadStructCallback(): p1 = jmolApplet0 p2 = null <-- THIS IS HOW FAILURE IS DETECTED. p3 = zapped p4 = null p5 = null in Chrome in Safari p2 = 0 For an available PDB file, jmolLoadStructCallback(): msgcall.js #13 jmolLoadStructCallback(): p1 = jmolApplet0 p2 = https://files.rcsb.org/download/1D66.pdb p3 = 1D66.pdb p4 = 1D66 p5 = null ---------------- Jan 2010 (v 1.44): Discovered that asynchronous concurrent messageCallbacks were confounding my jmolMessageCallback() code that attempted to detect HPUB files. At Bob's advice, removed that code and instead added jmolLoadStructCallback() (also in consurf/msgcall.js). Inserted (into help.js) makeBadPDBFileHelp() adapted from FGiJ 1.03. ---------------- FOUND Jan 2010 (v 1.44): 1.03 simply turned blank for an HPUB entry. Version 1.02/03 were supposed to do something intelligent. It has makeBadPDBFileHelp() in help.js and checkLoadCompletion() in moldoc.js. checkLoadCompletion() was never in service, I think. It simply looks to see if loading was completed in a specified time, and that is not a workable solution. Incidentally, messageCallBack was added in FGiJ 1.02, the version in which HPUB was supposed to be detected. Later it was used heavily for header processing for ConSurf/Tel-Aviv. 1.02/03 look for ScriptException:unrecognized file format in jmolMessageCallback. Although the version of Jmol is unchanged, maybe a change at RCSB causes a different response? With an HPUB entry in FGiJ 1.03 from SDSC, this appears in the Jmol console: load http://molvis.sdsc.edu/rcsbproxy/3IYE.pdb.gz File Error:java.security.AccessControlException: access denied (java.net.SocketPermission www.rcsb.org:80 connect,resolve) ScriptException:java.security.AccessControlException: access denied (java.net.SocketPermission www.rcsb.org:80 connect,resolve) ---------------------------- The current version traps "fileNotFoundException" and alerts, see BadPdb in consurf/msgcall.js. Neither makeBadPDBFile() nor loadCompletion are present in the current version. In fact, Agent Ransack quickly showed that only version 1.02 and 1.03 (991and1.0) ever had badpdb or loadcompletion code. Current Jmol reports java.io.FileNotFoundException: www.rcsb.org/pdb/nosuchfile.jsp evidently having redirected from the URL sent, which was (reported when debugging mode is turned on via advanced options) http://www.rcsb.org/pdb/cgi/export.cgi/3IYE.pdb.gz