-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b61
-
generic
-
generic
Errors produced by rhino evalutor becomes unreadable because of applet security. See test attached.
===> original error
>java test
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: Expected argument to getClass() to be a Java object. (<Unknown source>#1) in <Unknown source> at line number 1
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:97)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:120)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:224)
at test.init(test.java:13)
at test.main(test.java:21)
===> same error under applet viewer
>appletviewer test.htm
java.util.MissingResourceException: Can't find bundle for base name sun.org.mozilla.javascript.internal.resources.Messages, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1482)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1241)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:767)
at sun.org.mozilla.javascript.internal.Context.getMessage(Context.java:2195)
at sun.org.mozilla.javascript.internal.Context.getMessage0(Context.java:2139)
at sun.org.mozilla.javascript.internal.NativeJavaTopPackage.js_getClass(NativeJavaTopPackage.java:165)
at sun.org.mozilla.javascript.internal.NativeJavaTopPackage$1.call(NativeJavaTopPackage.java:124)
at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:2646)
at sun.org.mozilla.javascript.internal.InterpretedScript.call(InterpretedScript.java:60)
at sun.org.mozilla.javascript.internal.InterpretedScript.exec(InterpretedScript.java:53)
at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1073)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:89)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:120)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:224)
at test.init(test.java:13)
at sun.applet.AppletPanel.run(AppletPanel.java:405)
at java.lang.Thread.run(Thread.java:603)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.org.mozilla.javascript.internal.resources)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:321)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:190)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.util.ResourceBundle$RBClassLoader.loadClass(ResourceBundle.java:425)
at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2255)
at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1379)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1344)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1273)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1273)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1215)
... 15 more
###@###.### 2005-06-23 09:49:42 GMT
===> original error
>java test
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: Expected argument to getClass() to be a Java object. (<Unknown source>#1) in <Unknown source> at line number 1
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:97)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:120)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:224)
at test.init(test.java:13)
at test.main(test.java:21)
===> same error under applet viewer
>appletviewer test.htm
java.util.MissingResourceException: Can't find bundle for base name sun.org.mozilla.javascript.internal.resources.Messages, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1482)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1241)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:767)
at sun.org.mozilla.javascript.internal.Context.getMessage(Context.java:2195)
at sun.org.mozilla.javascript.internal.Context.getMessage0(Context.java:2139)
at sun.org.mozilla.javascript.internal.NativeJavaTopPackage.js_getClass(NativeJavaTopPackage.java:165)
at sun.org.mozilla.javascript.internal.NativeJavaTopPackage$1.call(NativeJavaTopPackage.java:124)
at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:2646)
at sun.org.mozilla.javascript.internal.InterpretedScript.call(InterpretedScript.java:60)
at sun.org.mozilla.javascript.internal.InterpretedScript.exec(InterpretedScript.java:53)
at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1073)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:89)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:120)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:224)
at test.init(test.java:13)
at sun.applet.AppletPanel.run(AppletPanel.java:405)
at java.lang.Thread.run(Thread.java:603)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.org.mozilla.javascript.internal.resources)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:321)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:190)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.util.ResourceBundle$RBClassLoader.loadClass(ResourceBundle.java:425)
at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2255)
at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1379)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1344)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1273)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1273)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1215)
... 15 more
###@###.### 2005-06-23 09:49:42 GMT