Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet error

 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am getting the following error when I am executing an applet to connect to a server via a socket.
java.security.AccessControlException: access denied (java.net.SocketPermission 1.9.1.1:8221 connect,resolve)

Kindly help me in this
regards.
Praveen
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the server the applet is trying to connect to is not the same as the one where the applet was served from, then that is not allowed by the applet security restrictions. See HowCanAnAppletReadFilesOnTheLocalFileSystem for information regarding the two ways around this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic