(轉)p解決 java.util.prefs.BackingStoreException 報錯問題

原文:https://blog.csdn.net/baidu_32739019/article/details/78405444html

https://developer.ibm.com/answers/questions/206592/when-i-try-to-stop-my-dmgr-how-can-i-resolve-getti.html?sort=oldestjava

When running the stopserver script:ide

was:/home/was/bin-> ./stopServer.shui

I find the following exception in the stopServer.log:.net

Exception in thread "Thread-10" java.lang.SecurityException: Could not lock User prefs.Lock file access denied. at java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode (FileSystemPreferences.java:930) at java.util.prefs.FileSystemPreferences.lockFile (FileSystemPreferences.java:919) at java.util.prefs.FileSystemPreferences.sync (FileSystemPreferences.java:725) at java.util.prefs.FileSystemPreferences.flush (FileSystemPreferences.java:818) at java.util.prefs.FileSystemPreferences.syncWorld (FileSystemPreferences.java:462) at java.util.prefs.FileSystemPreferences.access$1200 (FileSystemPreferences.java:44) at java.util.prefs.FileSystemPreferences$5$1.run (FileSystemPreferences.java:440)server

 

A user must have access to their $HOME directory.htm

This is a java requirement. Java needs to write some preferences in the .java subdirectory under the directory specified as $HOME. $HOME can be found in the Environment variable settings log entry of the detailed job log.blog

If a /.java directory exist, you can resolve the issue by one of two options.ip

  1. Make sure the user has proper permission to the $HOME/.java directory.ci

  2. Backup the /.java directory, some where outside of your environment, then deleted the /.java directory.

相關文章
相關標籤/搜索