You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Barry Becker <be...@bluemartini.com> on 2002/03/10 18:28:47 UTC

security exception when resizing a JSVGComponent in an applet

I was hoping to create an unsigned applet which would get svg documents from a server and render them in the ui.
However, it seems that it is impossible to resize the svg images in the applet without causing an AccessControlException.
Is there any way to avoid this problem without signing the applet? Here is the exception I get:

 java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
 at java.security.AccessControlContext.checkPermission(Unknown Source)
 at java.security.AccessController.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPermission(Unknown Source)
 at sun.applet.AppletSecurity.checkAccess(Unknown Source)
 at java.lang.Thread.checkAccess(Unknown Source)
 at java.lang.Thread.interrupt(Unknown Source)
 at org.apache.batik.swing.gvt.JGVTComponent.scheduleGVTRendering(Unknown Source)
 at org.apache.batik.swing.gvt.JGVTComponent$1.componentResized(Unknown Source)

I'm using JDK 1.3.1_02 on Windows 2000.

-Barry