>>Q: What is the behavior of the 'bad' script when using the Jmol >>application? >> > apple.awt.EventQueueExceptionHandler caught Throwable : > java.lang.NullPointerException java.lang.NullPointerException > [...] > > no syntax error in the script window, though, which I have come to expect > from Jmol script syntax issues. which supports the idea that this not a > normal script error.
Correct. Please confirm that this is happening on platforms other than Mac ... since I have once again lost all respect for the Java folks in Cupertino :-( >>>so I'd like to make a request: >>> >>>would it be possible to implement a more user-friendly method for >>>capturing scripting syntax errors in the applet? >> >>I have a lot of irons in the fire and cannot undertake this at the >>present time. >> > understood, of course. I was mostly blowing off some steam after a few > frustrating days (I feel better now). I was also interested to know if > this can be controlled from Jmol, or whether it requires a JVM change. I cannot say since I am not really familiar with what is going on. >>I cannot imagine why a script error would kill the JVM, but I cannot >>investigate it right now. >> >>Make a simple example for me, file a bug report with the example, >>and remind me of it occassionally. >> > ok, will do. > >> >>In general, I strongly recommend that script development be >>performed in the Jmol application. Save your scripts in files and >>use the 'script' command to execute them. Once they are running in >>the application you can move them to the applet. >> > yes, this works great for scripts that I develop, and especially when I > think I know what command is problematic. but, a friendly error-handling > routine in the applet would help a lot when I have no control over the > commands being passed. one example would be a command line interface to > the applet; another would be a script file upload option for a user; a > third would be a batch Chime-to-Jmol conversion routine. > > > I will file a bug report for this particular command, and a feature > request for the error-handling idea. Good. Miguel ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

