Applet error!!!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Applet error!!!

  1. #1
    Join Date
    Jul 2004
    Posts
    8

    Applet error!!!

    Recently, Im working on a school major project about Java networking game, Im doing the server-client applet that can work over the network, but fail. It shows the following error:

    java.security.AccessControlException: access denied (java.net.SocketPermission 152.226.136.91:5001 connect,resolve)

    What can be done to the above error? Please help, its extremely urgent!!!!!!!!!!!!Thanks in advance.


    (Please note that I have to use Java 2 to create the applets and I am using Windowx XP)

  2. #2
    Join Date
    Feb 2004
    Posts
    808
    if applets could create sockets, they could connect to anywhere and hence your computer could become a weapon of denial-of-service-attack

    hence, it's not allowed, hence the security exception
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

  3. #3
    Join Date
    Feb 2004
    Posts
    808
    actually, to be fair, applets can create socket connections.. but only back to the server they came from. use getDocumentBase() to disover the server address
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center