File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes applet error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet error " Watch "applet error " New topic
Author

applet error

praveen shinde
Ranch Hand

Joined: Jun 03, 2009
Posts: 63
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
Marshal

Joined: Mar 22, 2005
Posts: 41032
    
  43
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet error
 
Similar Threads
applets with sql server
Applet-oracle connectivity
Connects to more than one server !!!!
Io Exception : Broken Pipe
problems naming a host parameter