• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Failing applet connection with (SSL) https connection using proxy

 
GS Chidam
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason for the exception is that applets can only connect to the server where they originate, not to any other (like localhost or a local proxy). Digitally signing the applet gets around this; you can details on that here.
 
GS Chidam
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, This kind of problem not exist in all the version of JRE, some version, no problem, working fine.

If my user don't want to use the signed applet is there any other solution?

from sun, please refer the given url, we can take this is a bug in JRE1.5

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6446855
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic