From: Neil R. <ne...@bl...> - 2001-06-08 23:30:50
|
I'm trying to setup a security profile for my Jython application, but the Py.java class, when it tries to create the class loader, apparently ignores any security exceptions that are thrown, and then proceeds to try to use the class loader (which failed to load). This results in a NullPointerException without any hint of what the security exception was that caused the class loader not to load. I basically had to touch the code to dump a stack trace when it caught the SecurityException in order to find out what it was. Here's the NullPointerException stack trace: Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.NullPointerException at org.python.core.Py.findClassEx(Py.java:607) at org.python.core.imp.loadBuiltin(imp.java:198) at org.python.core.imp.load(imp.java:354) at org.python.core.imp.load(imp.java:376) at org.python.core.Py.initClassExceptions(Py.java:470) at org.python.core.PySystemState.initialize(PySystemState.java:335) at org.python.core.PySystemState.initialize(PySystemState.java:294) at org.python.core.PySystemState.initialize(PySystemState.java:287) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:61) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:45) Thanks, Neil Computer Science is no more about computers than astronomy is about telescopes. -- E. W. Dijkstra |