DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29659>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29659 Unable to declare a bean after any evaluation of a javascript script Summary: Unable to declare a bean after any evaluation of a javascript script Product: BSF Version: 2.3.0-rc1 Platform: PC OS/Version: All Status: NEW Severity: Normal Priority: Other Component: framework AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] A try to declare a bean after the first evaluation of a javascript code produces the following error: Error during event handling java.lang.RuntimeException: No Context associated with current Thread at org.mozilla.javascript.Context.getContext(Context.java:1927) at org.mozilla.javascript.ScriptRuntime.toObject (ScriptRuntime.java:493) at org.mozilla.javascript.Context.toObject(Context.java:1215) at org.apache.bsf.engines.javascript.JavaScriptEngine.declareBean (JavaScriptEngine.java:151) at org.apache.bsf.BSFManager.declareBean(BSFManager.java:383) at com.enterra.gluon.internal.model.script.ScriptManager.declareEnvironment (ScriptManager.java:45) at com.enterra.gluon.internal.model.script.ScriptManager.eval (ScriptManager.java:62) at com.enterra.gluon.internal.model.view.semantics.ScriptElement.run (ScriptElement.java:170) at com.enterra.gluon.internal.model.view.semantics.ScriptElement.handleDOMEvent (ScriptElement.java:105) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]