Found in jdk7-u21 b02
If i follow the readme.txt in the demo/scripting/jconsole-plugin directory to
* start jconsole with the script-plugin,
* then type "load()" in the Script Shell-tab to get the file chooser,
* choose hello.js (which calls echo defined in javascript.js)
The following exception occur:
Exception in thread "AWT-EventQueue-0" java.lang.reflect.UndeclaredThrowableException
at $Proxy13.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:660)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.security.PrivilegedActionException: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: Can't find method javax.swing.JComponent.print(string). (<built-in jconsole.js>#781) in <built-in jconsole.js> at line number 781
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.script.util.InterfaceImplementor$InterfaceImplementorInvocationHandler.invoke(InterfaceImplementor.java:66)
... 9 more
Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: Can't find method javax.swing.JComponent.print(string). (<built-in jconsole.js>#781) in <built-in jconsole.js> at line number 781
at com.sun.script.javascript.RhinoScriptEngine.invoke(RhinoScriptEngine.java:226)
at com.sun.script.javascript.RhinoScriptEngine.invokeMethod(RhinoScriptEngine.java:192)
at com.sun.script.util.InterfaceImplementor$InterfaceImplementorInvocationHandler$1.run(InterfaceImplementor.java:71)
... 11 more
Didn't happen on 1.6.0-b105 at least.