Subj : Re: Rhino - looking for ways to reset a scope.txt To : Ariel Malka From : Igor Bukanov Date : Fri Aug 29 2003 10:52 am Ariel Malka wrote: > Igor Bukanov wrote: > >>Are you sure that Context.enter gives you an exception as well? > > > yes, it even gives 3 nice exceptions: > > com.ms.security.SecurityExceptionEx[org/mozilla/javascript/ScriptRuntime.classOrNull]: > java.io.IOException: bad path: > E:\Works\ECLIPSE\workspace\RHINO\org\mozilla\javascript\optimizer\Codegen.class > at com/ms/security/permissions/FileIOPermission.check > at com/ms/security/PolicyEngine.deepCheck > at com/ms/security/PolicyEngine.checkPermission > at com/ms/security/StandardSecurityManager.chk > at com/ms/security/StandardSecurityManager.checkRead > at java/io/File.isDirectory > at sun/net/www/protocol/file/FileURLConnection.connect > at sun/net/www/protocol/file/FileURLConnection.getInputStream > at com/ms/vm/loader/ResourceLoader.getURLData > at com/ms/vm/loader/ResourceLoader.getCodebaseRelativeData > at com/ms/vm/loader/ResourceLoader.getClassData > at com/ms/vm/loader/URLClassLoader.findClass > at com/ms/vm/loader/URLClassLoader.loadClass > at java/lang/ClassLoader.loadClassInternal > at java/lang/Class.forName > at org/mozilla/javascript/ScriptRuntime.classOrNull > at org/mozilla/javascript/Context. > at org/mozilla/javascript/Context.enter These are exceptions from the class initializer for Context (marked as in the traces). They should happen only once the first time you access Context object which is in your case coincided with the first call to Context.enter. Regards, Igor .