Skip to main content

"access denied" error when running an applet

2 replies [Last post]
hhuang
Offline
Joined: 2009-11-17

Hey guys, I have signed webdav-client.jar in server by program, but there is still raise "access denied" error, error detail is as below :
***********************************
warning: Error initializing plugin org.jdesktop.wonderland.modules.webdav.client.WebdavClientPlugin
java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\Administrator\.wonderland\0.5-preview2\localRepo\Administrator read)
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.checkRead(Unknown Source)
at java.io.File.exists(Unknown Source)
at org.jdesktop.wonderland.client.ClientContext.getUserDirectory(ClientContext.java:176)
at org.jdesktop.wonderland.modules.webdav.client.WebdavClientPlugin.initialize(WebdavClientPlugin.java:118)
at org.jdesktop.wonderland.client.login.ServerSessionManager.initPlugins(ServerSessionManager.java:709)
at org.jdesktop.wonderland.client.login.ServerSessionManager.access$500(ServerSessionManager.java:64)
at org.jdesktop.wonderland.client.login.ServerSessionManager$LoginControl.loginComplete(ServerSessionManager.java:858)
at org.jdesktop.wonderland.client.login.ServerSessionManager$WebServiceLoginControl.loginComplete(ServerSessionManager.java:964)
at org.jdesktop.wonderland.client.login.ServerSessionManager$WebServiceLoginControl.authenticate(ServerSessionManager.java:954)
at org.jdesktop.wonderland.client.login.ServerSessionManager$NoAuthLoginControl.authenticate(ServerSessionManager.java:987)
at org.jdesktop.wonderland.client.jme.login.NoAuthLogin.doLogin(NoAuthLogin.java:99)
at org.jdesktop.wonderland.client.jme.login.JmeLoginUI$1.run(JmeLoginUI.java:90)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
***********************************

Anybody has some suggestion ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kaplanj
Offline
Joined: 2004-07-13

Can you read the directory:

C:\Documents and Settings\Administrator\.wonderland\0.5-preview2\localRepo\

outside of Wonderland (ie by navigating to it from "My Computer")? Wonderland uses the user's home directory to store things like avatar configuration. Somehow Java thinks that the Wonderland directory is not readable -- I don't know too much about Windows permissions, but perhaps you are running Wonderland without sufficient privileges? Or maybe some type of security package is blocking access?

hhuang
Offline
Joined: 2009-11-17

Hi kaplanj, thx for your answer. Actually, the error is caused by non-signed jars. Because it run at applet, it need the jars which want to read or write local files to be signed.