I got a applet which access the java.vendor variable in two method,
these two method is called by javascript.
when I try to run it at netscape6, the following error appear.  As
java.vendor should not be a protected property, so I don't know why I
will have such security error, please help.

java.security.AccessControlException: access denied
(java.util.PropertyPermission java.vendor read)
 at java.security.AccessControlContext.checkPermission(Unknown Source)
 at java.security.AccessController.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
 at java.lang.System.getProperty(Unknown Source)
 at SCLS.testing(SCLS.java)
 at java.lang.reflect.Method.invoke(Native Method)
 at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(Unknown
Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)

java.security.PrivilegedActionException:
java.lang.reflect.InvocationTargetException: java.lang.RuntimeException:
java.security.AccessControlException: access denied
(java.util.PropertyPermission java.vendor read)
 at SCLS.testing2(SCLS.java)
 at java.lang.reflect.Method.invoke(Native Method)
 at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(Unknown
Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)



Reply via email to