Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

alaskamatt17

[java] Inexplicable error

This topic is 5899 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am getting an AccessControlException when I use my game client to load character information from a file saved on the server, which is my computer. I have tried many different ways of putting the same thing in code, but they all give me this exception. Can anyone tell me how to resolve AccessControlExceptions? It might also be useful to note that all info is being sent in a String across a DataOutputStream based on my File''s OutputStream.

Share this post


Link to post
Share on other sites
Advertisement
"This exception is thrown by the AccessController to indicate that a requested access (to a critical system resource such as the file system or the network) is denied.

The reason to deny access can vary. For example, the requested permission might be of an incorrect type, contain an invalid value, or request access that is not allowed according to the security policy. Such information should be given whenever possible at the time the exception is thrown."

Taken from the JDK docs

Share this post


Link to post
Share on other sites
If it''s an applet the ONLY way to get to a file is through http or other network protocol. Anything else will be forbidden by the access controls of java.

Share this post


Link to post
Share on other sites
I am sending it across to the applet from a server application also written in Java. I don''t really understand how to change it to read in a way that is acceptable to the access controller.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!