• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Failing applet connection with (SSL) https connection using proxy

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic