If I grant "permission java.security.AllPermission" in the java.policy file, it connects and works perfectly. However, with default permissions, where I make the sfs.connect(ip, socket) call I get...
java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.stream.UseDirectReadBufferClient read)
Code: Select all
Exception in thread "Thread-29" java.lang.ExceptionInInitializerError
at org.xsocket.stream.Connection.<clinit>(Connection.java:77)
at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:134)
at it.gotoandplay.smartfoxclient.SmartFoxClient.connect(SmartFoxClient.java:1237)
at com.biddle.biddlej2js.BiddleJ2JS$1ConnectClient.run(BiddleJ2JS.java:138)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.stream.UseDirectReadBufferClient read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at org.xsocket.stream.io.impl.IoProvider.<clinit>(IoProvider.java:129)
... 5 more
I have tried signing the Applet, get the security dialog and that doesn't help. I've been searching Google for the past two days and nothing I try works.
Any ideas?