You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by Christoph Theis <th...@gmx.at> on 2004/06/25 16:34:29 UTC

XmlRpc constructor throws access denied

The default constructor of XmlRpc (Head) tries to get the property
TypeFactory.class.getName(). This might throw an
AccessControlException, if an Applet does not have the appropriate
rights. But usually it is not necessary to get this property as there
is a (good) default.
In my opinion the correct code would be

XmlRpc()
{
  String typeFactory = null;
  try
  {
    typeFactory = System.getProperty(TypeFactory.class.getName());
  }
  catch (java.lang.AccessControlException e)
  {
    ...
  }

  this(typeFactory);
}


Regards
Christoph