RE: Wierd Security Exception from JNLP app w/bsh
"Yemi D. Bedu" <yemi-DnQzskBZRmpWk0Htik3J/[email protected]> Wed, 5 Jan 2005 15:34:45 -0500
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, http://lopica.sourceforge.net/faq.html#nosandbox http://forum.java.sun.com/thread.jspa?threadID=562374&messageID=2767680 http://sinex.hut.mediapoli.com/cgi-bin/viewcvs.cgi/xsmiles/bin/xsmiles.p olicy?rev=1.5 please search for accessDeclaredMembers These two sites touch on this topic and could be helpful. Good day. Yemi Bedu ________________________________ From: beanshell-developers-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:beanshell-developers-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Darren Govoni Sent: Wednesday, January 05, 2005 2:28 PM To: beanshell-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: [Beanshell-dev] Wierd Security Exception from JNLP app w/bsh Hi, I have an app with some jars fed over Java Web Start. All the requisite JNLP files have "all-permissions" turned on. In the downloaded app, I get this exception when I try to evaluate a script string. Anyone know how to correct this? Need help badly. Darren bsh.InterpreterError: unable to get instance initializer: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers) at bsh.ClassGeneratorUtil.getConstructorArgs(Unknown Source) at FCSDefaultService.<init>(BeanShell Generated via ASM (www.objectweb.org)) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at bsh.Reflect.constructObject(Unknown Source) at bsh.BSHAllocationExpression.constructObject(Unknown Source) at bsh.BSHAllocationExpression.objectAllocation(Unknown Source) at bsh.BSHAllocationExpression.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source)