CachedRowSetImpl causing Applet Security exception when calling it's .properties
Posted on 2004-08-04
When using the new rowset.jar inside an applet, i'm getting the following exception:
java.security.AccessControlException: access denied (java.util.PropertyPermission rowset.properties 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 javax.sql.rowset.spi.SyncFactory.initMapIfNecessary(Unknown Source)
at javax.sql.rowset.spi.SyncFactory.getInstance(Unknown Source)
I'v gone to alot of trouble not having to change the policy files, but it seems rowset has to get it's properies file.
what i don't get is if the file is inside the jar that comes with the applet, why do i get the security exception?
Fix: the problem is it's using System.Property which lits up the java security...
any help would be great.