Hi, After adding the following to SysinfoTest.policy file permission java.util.PropertyPermission "user.dir", "read"; permission java.util.PropertyPermission "user.home", "read"; permission java.util.PropertyPermission "user.name", "read";
finally the following 2 errors are getting reported in running the SysInfoTest 1) Java home: Security Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission java.home read) 2) [Java Security Exception: access denied (java.io.FilePermission . read)] <null> Also attaching the out file of SyInfoTest for reference With Regards Jayaram On Tue, May 25, 2010 at 7:59 PM, Jayaram Subramanian <[email protected]> wrote: > Hi, > Actually it was typo in the email. In the policy file i had the "" , > but the java on sysinfotest was giving the error and even when takng > java.home out from policy file error continues to occur. > > With Regards > Jayaram > > On Tue, May 25, 2010 at 8:43 PM, Kathey Marsden > <[email protected]> wrote: >> On 5/25/2010 5:34 PM, Jayaram Subramanian wrote: >>> >>> Hi >>> While working on Derby 4616 (SysinfoTest prints permission errors >>> when printing sysinfo ) I added the following to the SyInfoTest >>> policy file >>> >>> permission java.util.PropertyPermission "user.dir", "read"; >>> permission java.util.PropertyPermission "user.home", "read"; >>> permission java.util.PropertyPermission "user.name", "read"; >>> >>> But still the sysinfo started printing error on "java.home" read .. >>> So i added permission java.util.PropertyPermission "java.home",read; >>> in the policy file. >>> >>> >> >> I think the problem might be that there are missing double quotes around >> 'read' in your new line. >> The policy file won't parse so you have the terrible errors. >> >> >> >
runoutputMay27.out
Description: Binary data
