would anyone happen to know what a cancelledKeyException refers to specifically? Perhaps any hints as to what they are about?
I'm simulating a flood of calls to electroserver during a timed event. Below is the plugin script.
and here is the error that I am recieving:Code:function pluginInit (hash) { //trace ("the constant change plugin has been initialized"); constHolder = new Array (); emptier = setInterval ("remEntries", 1000); clickNums = 0; } function pluginRequest (hash) { //trace("we are now inside of the pluginRequest for constChange"); var caller = hash.get ("ExecutingUserName"); var method = hash.get ("Method"); constHolder.push(hash.get("ExecutingUserName")); //trace("a new value has been pushed into the constHolder array - it is: "+constHolder[constHolder.length-1]); } function remEntries (){ //trace("inside of remEntries"); // trace("constHolder.length is: "+constHolder.length); clearInterval (emptier); while (constHolder.length > 0){ var sandman = constHolder.shift (); increaseClickNums (); } emptier = setInterval ("remEntries", 1000); } function increaseClickNums(){ clickNums = clickNums+1; var sessInf = new Object(); //trace("clickNums is: "+clickNums); sessInf.clickNums = clickNums; returnToUser(sessInf,"numUp","rando"); } function returnToUser (sessInf, retType, userNom) { var variables = new Object (); variables.clickNums = sessInf.clickNums; server.sendMessage ("public",retType, variables); }
org.mozilla.javascript.JavaScriptException: java.nio.channels.CancelledKeyExcept
ion
at org.mozilla.javascript.JavaScriptException.wrapExc eption(JavaScriptEx
ception.java:70)
at org.mozilla.javascript.NativeJavaMethod.call(Nativ eJavaMethod.java:26
5)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRu ntime.java:1191)
at org.mozilla.javascript.gen.c243.call(plugins/constChange.as:171)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRu ntime.java:1191)
at org.mozilla.javascript.gen.c228.callDirect(plugins/constChange.as:76)
at org.mozilla.javascript.gen.c227.callDirect(plugins/constChange.as:59)
at org.mozilla.javascript.gen.c226.call(plugins/constChange.as:44)
at com.electrotank.electroserver.plugins.ScriptPlugin .executeJavaScriptF
unction(ScriptPlugin.java:286)
at com.electrotank.electroserver.plugins.ScriptPlugin $FunctionRunner.run
(ScriptPlugin.java:424)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)


Reply With Quote
