Hi all,

it seems that the Jmol Java applet version 14.4.0_2015.11.06 has a 
problem with empty echo messages on my system (Oracle Java Plug-in 
11.66.2.17, RE version 1.8.0_66-b17 Java HotSpot(TM) 64-Bit Server VM; 
Firefox 42.0; OpenSuse 12.2). The problem does not occur with the 
application.

In the following example the echo is displayed correctly until the echo 
text is emptied in the last command. This results in an exception 
message and blocking of further script commands:

---- Example code -------------
   set echo ID "progressmessage" 0% 0%;
   set echo progressmessage hidden;
   iterationNumber = 1;
   iterationCount = 1;
   set echo ID progressmessage "Please wait, iteration 
@{iterationNumber} of @{iterationCount}...";
   set echo progressmessage displayed;
   set echo progressmessage "";

--- Error message -----------------
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.charAt(String.java:658)
        at org.jmol.console.GenericConsole.outputMsg(Unknown Source)
        at org.jmol.console.GenericConsole.sendConsoleMessage(Unknown Source)
        at org.jmol.console.GenericConsole.notifyCallback(Unknown Source)
        at org.jmol.util.GenericApplet.notifyCallback(Unknown Source)
        at org.jmol.viewer.StatusManager.setScriptEcho(Unknown Source)
        at org.jmol.viewer.Viewer.scriptEcho(Unknown Source)
        at org.jmol.viewer.Viewer.showString(Unknown Source)
        at org.jmol.script.ScriptEval.showStringPrint(Unknown Source)
        at org.jmol.script.ScriptEval.showString(Unknown Source)
        at org.jmol.script.ScriptEval.cmdEcho(Unknown Source)
        at org.jmol.script.ScriptEval.cmdSetEcho(Unknown Source)
        at org.jmol.script.ScriptEval.cmdSet(Unknown Source)
        at org.jmol.script.ScriptEval.commandLoop(Unknown Source)
        at org.jmol.script.ScriptEval.dispatchCommands(Unknown Source)
        at org.jmol.script.ScriptEval.runFunctionAndRet(Unknown Source)
        at org.jmol.script.ScriptEval.cmdFunc(Unknown Source)
        at org.jmol.script.ScriptEval.processCommand(Unknown Source)
        at org.jmol.script.ScriptEval.commandLoop(Unknown Source)
        at org.jmol.script.ScriptEval.dispatchCommands(Unknown Source)
        at org.jmol.script.ScriptEval.executeCommands(Unknown Source)
        at org.jmol.script.ScriptEval.evaluateCompiledScript(Unknown Source)
        at org.jmol.script.ScriptManager.evalStringWaitStatusQueued(Unknown 
Source)
        at org.jmol.viewer.Viewer.evalStringWaitStatusQueued(Unknown Source)
        at org.jmol.script.ScriptQueueThread.runNextScript(Unknown Source)
        at org.jmol.script.ScriptQueueThread.run1(Unknown Source)
        at org.jmol.thread.JmolThread.run(Unknown Source)
------------------------------------

Regards,
Rolf
-- 

Rolf Huehne
Postdoc

Leibniz Institute on Aging - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany

Phone:   +49 3641 65 6205
Fax:     +49 3641 65 6210
E-Mail:  rhue...@leibniz-fli.de
Website: http://www.leibniz-fli.de

           Scientific Director: Prof. Dr. K. Lenhard Rudolph
        Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Burkhard Zinner

VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228


------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to