System.UnauthorizedAccessException: Access to the path 'jni4net.n-0.8.6.0.dll' i s denied. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recur sive) at net.sf.robocode.dotnet.host.seed.AppDomainShell.Dispose() at net.sf.robocode.dotnet.repository.root.DllRootHelper.Refresh() at net.sf.robocode.dotnet.repository.root.__DllRootHelper.Refresh0(IntPtr __e nvp, JniLocalHandle __class) at net.sf.robocode.dotnet.repository.root.DllRootHelper.Refresh(Native M ethod) at net.sf.robocode.dotnet.repository.root.handlers.DllHandler.close(DllH andler.java:41) at net.sf.robocode.repository.root.handlers.RootHandler.closeHandlers(Ro otHandler.java:57) at net.sf.robocode.repository.Database.update(Database.java:64) at net.sf.robocode.repository.RepositoryManager.refresh(RepositoryManage r.java:85) at net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager .java:114) at net.sf.robocode.repository.RepositoryManager.checkDbExists(Repository Manager.java:287) at net.sf.robocode.repository.RepositoryManager.loadSelectedRobots(Repos itoryManager.java:157) at net.sf.robocode.battle.BattleManager.startNewBattle(BattleManager.jav a:128) at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:166)

robocode | fnl | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    .NET: UnauthorizedAccessException in AppDomainShell.Dispose()

    robocode | 4 years ago | fnl
    System.UnauthorizedAccessException: Access to the path 'jni4net.n-0.8.6.0.dll' i s denied. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recur sive) at net.sf.robocode.dotnet.host.seed.AppDomainShell.Dispose() at net.sf.robocode.dotnet.repository.root.DllRootHelper.Refresh() at net.sf.robocode.dotnet.repository.root.__DllRootHelper.Refresh0(IntPtr __e nvp, JniLocalHandle __class) at net.sf.robocode.dotnet.repository.root.DllRootHelper.Refresh(Native M ethod) at net.sf.robocode.dotnet.repository.root.handlers.DllHandler.close(DllH andler.java:41) at net.sf.robocode.repository.root.handlers.RootHandler.closeHandlers(Ro otHandler.java:57) at net.sf.robocode.repository.Database.update(Database.java:64) at net.sf.robocode.repository.RepositoryManager.refresh(RepositoryManage r.java:85) at net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager .java:114) at net.sf.robocode.repository.RepositoryManager.checkDbExists(Repository Manager.java:287) at net.sf.robocode.repository.RepositoryManager.loadSelectedRobots(Repos itoryManager.java:157) at net.sf.robocode.battle.BattleManager.startNewBattle(BattleManager.jav a:128) at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:166)

    Root Cause Analysis

    1. System.UnauthorizedAccessException

      Access to the path 'jni4net.n-0.8.6.0.dll' i s denied. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recur sive) at net.sf.robocode.dotnet.host.seed.AppDomainShell.Dispose() at net.sf.robocode.dotnet.repository.root.DllRootHelper.Refresh() at net.sf.robocode.dotnet.repository.root.__DllRootHelper.Refresh0(IntPtr __e nvp, JniLocalHandle __class) at net.sf.robocode.dotnet.repository.root.DllRootHelper.Refresh(Native M ethod) at net.sf.robocode.dotnet.repository.root.handlers.DllHandler.close(DllH andler.java:41) at net.sf.robocode.repository.root.handlers.RootHandler.closeHandlers(Ro otHandler.java:57) at net.sf.robocode.repository.Database.update(Database.java:64) at net.sf.robocode.repository.RepositoryManager.refresh(RepositoryManage r.java:85) at net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager .java:114) at net.sf.robocode.repository.RepositoryManager.checkDbExists(Repository Manager.java:287) at net.sf.robocode.repository.RepositoryManager.loadSelectedRobots(Repos itoryManager.java:157) at net.sf.robocode.battle.BattleManager.startNewBattle(BattleManager.jav a:128) at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:166)

      at java.lang.Thread.run()
    2. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame