Hello,
Applet failure I call my method Z.createConnection and I will get an exception with "java.lang.Runtime.addShutdownHook". This is all realted to java.security.AccessControlException: access denied (java.lang.RuntimePermission shutdownHooks) which is triggered by an Ice call.
Is there any way to disable the shutdown hook setup? ( note - signing the JAR or using JNLP is not an option for me ).
Do I have to hack the code or is there some method to call to prevent the Ice.Application.changeHook(...) call.
I get the following message:Code:public class Z extends Ice.Application { public void createConnection() { String[] custArgs = new String[7]; custArgs[0] = "--Ice.MessageSizeMax=16384"; // 16 mega-bytes custArgs[1] = "--Ice.BatchAutoFlush=1"; custArgs[2] = "--Ice.ACM.Client=0"; custArgs[3] = "--Ice.ThreadPool.Client.Size=1"; custArgs[4] = "--Ice.ThreadPool.Client.SizeMax=15"; custArgs[5] = "--Ice.ThreadPool.Server.Size=1"; custArgs[6] = "--Ice.ThreadPool.Server.SizeMax=15"; int status = main("CROME", custArgs); } }
Thanks in AdvanceCode:network: Connecting http://binky.quantumsi.com/jbin/Zcheck?cmd=header with cookie "__utma=121695755.852096886.1270944348.1270944348.1270944348.1" !! 6/6/11 16:29:04:074 CROME: error: Thread-18: unknown exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission shutdownHooks) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.Runtime.addShutdownHook(Unknown Source) at Ice.Application.changeHook(Application.java:498) at Ice.Application.destroyOnInterrupt(Application.java:348) at Ice.Application.doMain(Application.java:197) at Ice.Application.main(Application.java:180) at Ice.Application.main(Application.java:71) at Z.createConnection(BRXE) at Z.init(BRXE) at Zmain.run(BRXE)
Jon

Reply With Quote