Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connecting to remote server that requires SSL without SSL

Status
Not open for further replies.

Jroyal

Programmer
Oct 24, 2006
9
GB
hi, i have this applet orginal run by its developers via SSL to connect to another server via SSL..

Applet --- server

now i downloaded the applet and i want to run it from my pc to connect to the remote server but i get this error:
ContentControl.connect1(): caught Exception: java.security.AccessControlException: access denied (java.net.SocketPermission URL HERE:80 connect,resolve)
23:35:38 ContentControl.connect1(): couldn't connect, calling disconnect()
 
If the server is expecting a secure connection, you need to use SSL.

Cheers,
Dian
 
There are two issues here.

One is that the error indicates the Java policy does not allow the applet to connect to external servers :

java.security.AccessControlException: access denied (java.net.SocketPermission URL HERE:80 connect,resolve)


The other is that you appear to be connecting on port 80 (HTTP) rather than port 443 (HTTPS).

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top