Archived

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

alaskamatt17

[java] Inexplicable error

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
"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