#519 Calls to jmolGetPropertyAsString fails in 12.2.10

open
Applet (71)
5
2011-12-27
2011-12-27
No

I'm getting failures with the message of "NPObject not found" when I call jmolGetPropertyAsString more than once on an applet for version 12.2.10. I haven't backtracked through all the versions but it works fine with 12.0.45, which is what I was upgrading from.

Discussion

  • Bob Hanson

    Bob Hanson - 2011-12-30

    Not seeing that myself with Jmol 12.3. Can you show a page where that is happening?

     
  • Jonathan Gutow

    Jonathan Gutow - 2011-12-31

    Traveling now. Will post a simplified example page as soon as I can.

     
  • Jonathan Gutow

    Jonathan Gutow - 2012-01-06

    I've traced it in version 12.2.11 to calls of the form

    pictureStr = jmolGetPropertyAsString("image","",n)

    where n is assigned a value by the rest of the javascript.

    It seems to be working for getting the StateInfo.

     
  • Bob Hanson

    Bob Hanson - 2012-01-06

    I can't reproduce the problem. What's the error trace showing that NPObject error?

     
  • Jonathan Gutow

    Jonathan Gutow - 2012-01-06

    Unfortunately there is not an error trace, after that call is made the applet hangs without an error in the Java Console. The JavaScript error console of the browser does show the error I've quoted and identifies the line where the call to jmolGetPropertyAsString occurs.
    See this page on my website for an example.
    http://www.uwosh.edu/faculty_staff/gutow/Jmol_test_page/test%20of%20Jmol%20--%20Sage.html
    To get the failure:
    1) Load Jmol by clicking the "Make Interactive" button
    2) Click on the "Get Static Image to Save (sleep)" button to cause the failure.

    Most of the other features work, although I haven't finished redoing the switch to signed applet to use the new feature in Jmol.js.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks