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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

security. AccessControlException from Applet?

Status
Not open for further replies.

chuq2001

Programmer
Jul 15, 2002
24
US
I'm creating am applet that connects to a database on an AS/400. When I try to connect it gives this error.

java.security.AccessControlException: access denied
(java.net.SocketPermision <systemname> resolve)

where <systemname> is my AS/400

It's obviously a security problem
Any help?

Thanks
Chuck T
 
Sounds like you're using the Socket Class somewhere which is a no no for untrusted unsigned applets in most browsers. You can only open a connection to the server the applet was loaded from, and I believe you have to use URLConnection for that rather than a socket. I'd check the database API too, to make sure it doesn't extend java.net.Socket or something like that somewhere. If you can, you can either ask your clients to turn off java security (high risk) or sign your code with a certificate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top