I had this problem when I try to access files that aren't on the
same domain as the applet itself. For example, if your applet is
on www.mydomain.com and it loads files from www.anothersdomain.com
java throws this exception. To avoid this, you have two choices:
Put the files on the same domain or make a .java.policy files
that grant access to non-native domain.
Hope it helps.
Fran�ois Savard
Marjon van den Broek wrote:
>
> Hello,
>
> Has anyone seen this problem in Java3D applet.
>
> When i run a Java3D applet on the same machine as the webser everything works
> fine (local). When i run the applet on a remote machine I get this security
> exception.
>
> java.lang.ExceptionInInitializerError: java.security.AccessControlException:
> access denied (java.lang.RuntimePermission modifyThreadGroup )
> at java.security.AccessControlContext.checkPermission(Compiled Code)
> at java.security.AccessController.checkPermission(Compiled Code)
> at java.lang.SecurityManager.checkPermission(Compiled Code)
> at sun.applet.AppletSecurity.checkAccess(AppletSecurity.java:142)
> at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:278)
> at java.lang.ThreadGroup.getParent(ThreadGroup.java:142)
> at javax.media.j3d.MasterControl$17.run(Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.media.j3d.MasterControl.<clinit>(MasterControl.java:2611)
> at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:36)
> at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:469)
> at pilot.aex.AexApp.<init>(AexApp.java:37)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:239)
> at sun.applet.AppletPanel.createApplet(AppletPanel.java:532)
> at sun.plugin.AppletViewer.createApplet(AppletViewer.java:801)
> at sun.applet.AppletPanel.runLoader(AppletPanel.java:468)
> at sun.applet.AppletPanel.run(Compiled Code)
> at java.lang.Thread.run(Thread.java:479)
>
> thanks in advance
> Marjon v.d. Broek
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".