Jump to content

Does anyone know what these error means?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
minifish

minifish

    Newbie

  • Members
  • Pip
  • 5 posts
Hello,
I'm running my rmi client and got the following errors.

java.io.FileNotFoundException: \logs\new.log (The system cannot find the path specified)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)



and

Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.<init>(Unknown Source)
at net.jini.security.Security$ClassContextAccess.<init>(Security.java:965)
at net.jini.security.Security$ClassContextAccess.<init>(Security.java:965)
at net.jini.security.Security$1.run(Security.java:167)
at java.security.AccessController.doPrivileged(Native Method)
at net.jini.security.Security.<clinit>(Security.java:165)
... 10 more

Does anyone have any suggestion on how to fix these two problems?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It looks like you are trying to add text to a non-existent file. Without seeing your code and the content of \logs, it's hard to say for sure.

For the second item, you may have tried to use a function (such as in an applet) that is not allowed to run in the given situation (applets cannot access files on the local system). Again, without the code it's hard to say.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog