Menu

Missing j2s files?

2014-09-18
2014-11-10
  • Amos Anderson

    Amos Anderson - 2014-09-18

    I just downloaded the latest version of JSmol (Jmol-14.2.4_2014.08.03-binary.tar.gz) and I dropped it into my setup to check it out. I can't get it to work however; here's the first error I'm getting:

    2014-09-18 12:18:00.509JSmol load jmol0 loadClazz... JSmol.min.js:267
    2014-09-18 12:18:00.514JSmol load jmol0 start applet... JSmol.min.js:267
    2014-09-18 12:18:00.628JSmol exec jmol0 loadClazz null -- OK JSmol.min.js:268
    2014-09-18 12:18:00.969GET http://www.domain.com/j2s/java/security/AccessController.js
    JSmol.min.js:426window.j2s.clazzloaded.c.loadScript
    JSmol.min.js:426window.j2s.clazzloaded.c.loadClassNode
    JSmol.min.js:447window.j2s.clazzloaded.c.tryToLoadNext
    JSmol.min.js:431window.j2s.clazzloaded.c.loadingNextByPath JSmol.min.js:419(anonymous function)
    2014-09-18 12:18:01.414GET http://www.domain.com/j2s/java/security/PrivilegedExceptionAction.js  JSmol.min.js:426
    2014-09-18 12:18:01.416GET http://www.domain.com/j2s/java/util/MapEntry/Type.js  JSmol.min.js:426
    2014-09-18 12:18:01.418GET http://www.domain.com/j2s/java/net/UnknownServiceException.js  JSmol.min.js:426
    2014-09-18 12:18:01.421GET http://www.domain.com/j2s/java/io/OutputStreamWriter.js  JSmol.min.js:426
    2014-09-18 12:18:01.422GET http://www.domain.com/j2s/java/security/AccessController.js  JSmol.min.js:426
    2014-09-18 12:18:01.445GET http://www.domain.com/j2s/java/security/PrivilegedExceptionAction.js  JSmol.min.js:426
    2014-09-18 12:18:01.447GET http://www.domain.com/j2s/java/util/MapEntry/Type.js  JSmol.min.js:426
    2014-09-18 12:18:01.455GET http://www.domain.com/j2s/java/net/UnknownServiceException.js 404 (Not Found) JSmol.min.js:426
    2014-09-18 12:18:01.458GET http://www.domain.com/j2s/java/io/OutputStreamWriter.js 404 (Not Found) JSmol.min.js:426
    2014-09-18 12:18:01.531JSmol exec jmol0 start applet null -- OK JSmol.min.js:268
    2014-09-18 12:18:01.828GET http://www.domain.com/j2s/java/util/concurrent/Executors.js 404 (Not Found)
    

    Where I expanded the first error to show a stack trace. It's not just a problem of whether I copied the file to my server, the file "AccessController.js" is not in the jsmol.zip file included in Jmol. This worked with the previous version of Jsmol that I was using (Jmol-14.0.13-binary.tar.gz), although it doesn't look like it included those files either. The script I'm using to load my JSmol looks something like this:

               var script = 'load data "mypdb"\n'+atob(dsData[0].structure)+'end "mypdb";'
               script += 'spacefill off;wireframe off;cartoons on;color structure;'
               var Info = {
                  width: "100%",
                  height: "100%",
                  debug: false,
                  color: "white",
                  addSelectionOptions: false,
                  use: "HTML5",
                  j2sPath: "j2s",
                  script: script,
                  disableInitialConsole: true,
                  disableJ2SLoadMonitor: true,
                  z: 1000000,
                  zIndexBase: 1000000,
                  loadstructcallback: "jmolCallback"
               }
               this.jmolApp = Jmol.getApplet("jmol"+_displayID++,Info);
    

    The reason I'm trying to update is because there's a bug I'm looking into, and I figured I'd start by updating my version.

    Am I doing something wrong? Thanks!

     
    • Bob Hanson

      Bob Hanson - 2014-11-01

      You really put those files on www.domain.com? That's your server?

       
  • Amos Anderson

    Amos Anderson - 2014-11-01

    I can confirm that this problem has gone away with JSmol 14.2.7.

     
  • Amos Anderson

    Amos Anderson - 2014-11-10

    No; I anonymized it a little bit.

     

Log in to post a comment.