powered by Jive Software

Security problems with an applet


i packed my program in an applet to run it and it did not run

so i used a textarea and used exception.tostring() (i don’'t know how to print the whole stack)

i got this message

java.security.Acces ControlException: access denied (java.net.SocketPermision pc-elias resolve)

any idea of how to solve it?




By default, applets aren’'t allowed to open sockets to servers other than the server the applet is from. So, you have a couple of options:

  • Make it a signed applet so that users can grant special permissions to it to allow opening sockets to any host.

  • Have the applet be served from the same server that the XMPP server is running on.

  • Write a servlet or some other middle tier that can act as a proxy on the server-side for opening connections to other hosts. Your applet could then talk to that servlet.



I think that your problem is responded here:

http://www.jivesoftware.com/jive/thread.jspa?forumID=39&threadID=8859&messageID= 63249#63249

Remove the space in the link to work!!!

I don’'t know why but it breaks the whole message with the space.

Nuno Agapito