Applet security..


java.security.AccessControlException: access denied (java.lang.RuntimePermission setSecurityManager)
	at java.security.AccessControlContext.checkPermission(Unknown Source)
	at java.security.AccessController.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkPermission(Unknown Source)
	at java.lang.System.setSecurityManager0(Unknown Source)
	at java.lang.System.setSecurityManager(Unknown Source)
	at drc.Main.init(Main.java:74)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

I keep getting that. Even if I try to change a thread’s name I get that error. Any workaround?

It seems you’re trying to set a new security manager in line 74 in Main.java. You’re not allowed to do that.

[edit:]
There should be no work-around. If you find one, you’ve found a security flaw in java.

I think he got some totally different security Exception (when setting the thread’s name), and then tried to remove the security manager with System.setSecurityManager(null).

It shouldn’t be a problem to set the name of a Thread in its constructor.

yeah thats exactly what happened… Apache MINA tries to set the name of a thread and it gave an exception. I can’t go and edit the MINA libraries…

MINA also resolves hostnames, which is illegal in the sandbox, so you can’t connect to your own host.

It’s just sad how MINA criples itself.