ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Life is hard, and then you die" <ron...@innovation.ch>
Subject Re: workaround for xmlrpc-client exception in applet context
Date Wed, 01 Sep 2004 19:08:41 GMT
On Thu, Sep 02, 2004 at 01:37:21AM +1000, Raja Subramanian wrote:
> When I run my application as a standalone app, all goes well.  But when
> I run the same as an (unsigned) applet, the following exception is
> raised.  Yes, yes, I'm aware of applet restrictions and such.
[snip]
> The offending line is in ./org/apache/xmlrpc/XmlRpc.java line 201.  The
> following change to XmlRpc() seems to fix the problem for me.  For the
> record, I'm using java 1.4.2_04 on linux.  I have not tested on other
> platforms.
> 
> ===== XmlRpc.java
> protected XmlRpc()
> {
> //  System.get...() always returns null on my box anyway!
> //  this(System.getProperty(TypeFactory.class.getName()));
> 
>     this((String) null);
> }
> =====
> 
> I admit that my workaround is too crude, but can someone offer a better
> solution that is more acceptable for all?  Can someone help?

Just catch the exception:

      try
      {
          this(System.getProperty(TypeFactory.class.getName()));
      }
      catch (SecurityException e)
      {
          this((String) null);
      }


  Cheers,

  Ronald


Mime
View raw message