users@jax-rpc.java.net

Using JAX-RPC in applets -> AccessControlException ?

From: Henning Voss <hvoss_at_INTERA.DE>
Date: Mon, 28 Oct 2002 16:12:13 +0100

hi,

when i try to use jax-rpc in an applet (I am using the JWSDP 1.0_01, jre
1.3.1_02) the following exception is thrown:

java.security.AccessControlException: access denied
(java.util.PropertyPermission com.sun.xml.rpc.streaming.XMLWriterFactory
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
com.sun.xml.rpc.streaming.XMLWriterFactory.newInstance(XMLWriterFactory.java:37)
        ....

which basically means that
com.sun.xml.rpc.streaming.XMLWriterFactory
calls System.getProperty() but is not allowed to.

Supplying all users with .java.policy-files is not a really useful option.
Is there a solution or a workaround
for the problem ? Or should this be considered a bug ?

thanks in advance,
Henning