Hi undertruck, once faced a similar problem. This PrivilegedAction looks like using in a separate thread but does it really do ? I had to _explicitly_ start a new thread to do privileged action.
Greetings and good luck Andreas ----- original Nachricht -------- Betreff: [iText-questions] How to register a font in iText FontFactory in self signed Java applet? Gesendet: Mi, 05. Jan 2011 Von: undertruck<[email protected]> > > In my self signed java applet, I get following error: > > uncaught exception: java.security.AccessControlException: access denied > (java.io.FilePermission resources/fonts/new_font.TTF read) > > resources/fonts/new_font.TTF file is packed inside jar. > > I also tried Privileged methods mentioned like below, but I'm still getting > the error. > > My code after alteration: > > java.security.AccessController.doPrivileged( > new java.security.PrivilegedAction() { > public Object run() { > FontFactory.register("resources/fonts/new_font.TTF", "new_font"); > return null; > } > } > ); > > Any help would be appreciated. Thanks. > -- > View this message in context: > http://itext-general.2136553.n4.nabble.com/How-to-register-a-font-in-iText-F > ontFactory-in-self-signed-Java-applet-tp3175157p3175157.html > Sent from the iText - General mailing list archive at Nabble.com. > > ---------------------------------------------------------------------------- > -- > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Many questions posted to this list can (and will) be answered with a > reference to the iText book: http://www.itextpdf.com/book/ > Please check the keywords list before you ask for examples: > http://itextpdf.com/themes/keywords.php > --- original Nachricht Ende ---- ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
