axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ming Cheung (JIRA)" <>
Subject [jira] Commented: (AXIS2-884) SecurityException thrown when run from an applet
Date Fri, 18 Aug 2006 20:59:14 GMT
    [ ] 
Ming Cheung commented on AXIS2-884:

I just wonder what type of exception you have from these 2 classes. Could you/someone please
cut and paste the failure call stacks here? 

> SecurityException thrown when run from an applet
> ------------------------------------------------
>                 Key: AXIS2-884
>                 URL:
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>            Reporter: Shreyes Seshasai
> Java applets are given fewer security privileges than stand alone applications by default.
 When trying to run an Axis2 client from a java applet, it may not have all of the privileges
required by some of the calls in the Axis2 code, causing SecurityExceptions to be thrown.
 Examples of these calls are System.getProperty() and File.listFiles().
> A suggested fix would be to enclose these calls in try/catch(SecurityException) blocks,
and assign default values to the variables which failed to be set.
> Known affected files:
> Adding the try/catch blocks here allowed the applet to start and function correctly.
 However, the problem probably exists in other locations in the code too.  I was only using
limited functionality (no additional modules or databinding). Since applets cannot read files
from the file system, I'm unsure how this affects other axis2 functionality.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message