From: rohit s. <ro2...@ya...> - 2001-12-04 13:32:09
|
Hi All, I am getting the following error when I am trying to execute some jython statements from inside my java code. I have a Java File PyFactory .java. It has a static method getInterp() which returns PythonInterpreter object. So when I do:- PyFactory.getInterp().exec("import sys"); I get the following error:- java.security.AccessControlException: access denied(java.lang.RuntimePermission getProtectionDomain) at java.security.AccessControlContext.checkPermission( AccessControlContext.java:272) at java.security.AccessController.checkPermission( AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.Class.getProtectionDomain(Class.java 1286) at org.python.core.BytecodeLoader2.LoadClassFromBytes(BytecodeLoader2.java:32) at org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:77) at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:82) at org.python.core.Py.compile(Py.java:1413) at org.python.core.Py.compile(Py.java:1428) at org.python.core.__builtin__.compile(__builtin__.java:203) at org.python.core.Py.exec(Py.java:1074) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:135) blah blah blah.... Any pointers why? Pl help!!! Thanx in advance Rohit __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com |