Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Applet Problem (java.security.AccessControlException)

807603Nov 18 2007 — edited Nov 19 2007
alright, i got this applet that should connect to an irc server, (in this case irc.tip.it)

when i run it via the applet viewer, it works perfectly.

but when i try running it in the browser window, i get the following in the console, and the program stops:
Exception in thread "Thread-8" java.security.AccessControlException: access denied (java.net.SocketPermission irc.tip.it resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at java.net.InetSocketAddress.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at smoothIRC.run(smoothIRC.java:129)
at java.lang.Thread.run(Unknown Source)
how can i prevent this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2007
Added on Nov 18 2007
4 comments
98 views