mercredi 25 février 2015

java.security.policy processing values are not tranferred

My question is around the java.security.policy logic. It seems that there came up problems with JRE6 (I meet them on LINUX and on Windows). I can't get my policy files to be read . But when I set the properties within my code: System.setProperty("java.net.SocketPermission", "192.168.100.13:1024-65535, read, accept, listen, connect, resolve"); it is reported: java.net.SocketPermission=192.168.100.13:1024-65535, read, accept, listen, connect, resolve. That seems fine. But when going further in my code, I get the error: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.100.13:1096 connect,resolve) All this code worked before on Linux and on Windows. Do you have any idea?


Aucun commentaire:

Enregistrer un commentaire