When the
applet connection is being made with a secure (SSL) https connection - the connection fails with a security exception. This problem mainly in applet. My applet using socket connection to get the data. In the applet
java console it display the exception.
The exception is : java.security.AccessControlException:access denied(java.net.SocketPermission proxy:8080 connect,resolve).
This problem not happening some version of JRE, Currently I am using JRE1.5, this version having this problem.
I added socket permission in the Java policy file, something like this
permission java.net.SocketPermission "proxy:8080", "connect,resolve";
After adding this line in the policy, the applet works fine.
But many of my users are using proxy connection, i don't want to give the proxy name and IP to my user, I don't want to give instruction to change the java policy file.
How to solve this issue, without changing the policy file?