Jump to content
Changes to the Jaspersoft community edition download ×

AccessControlException print/save from applet

Recommended Posts

By: Collin Peters - cadiolis

AccessControlException print/save from applet

2006-01-12 15:49

I am trying to setup a web-app in tomcat and have got everything running smoothly. However, I cannot use the save button or print button in the applet viewer.


Clicking the save button results in the following error in the java console:

Exception in thread "AWT-EventQueue-4" java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)


and clicking the print button results in a java window asking for permission to print, then after clicking ok it first gives a dialog that says "Error printing report. See console for details" and the console says:

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt.windows)


I looked on the net and it said for most AccessControlExceptions you should sign your applet. So I went through all the steps to do that from http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/jarsigner.html but that didn't help at all.


Anybody have any ideas on how to get this applet to work? By the way, same problem in both IE and Firefox.








By: Denny Valliant - xenden

RE: AccessControlException print/save from ap

2006-01-12 21:21

See this thread:



Don't know if it will work for you (maybe something similar?) but the proposed solution from that thread is:


Add the following to your server.policy file


// Jasperreports

grant {

permission java.lang.RuntimePermission "getProtectionDomain";

permission java.lang.RuntimePermission "createClassLoader";


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...