Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Failing applet connection with (SSL) https connection using proxy

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 : denied( 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 "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?
Posts: 43016
  • 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
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic