(转)p解决 java.util.prefs.BackingStoreException 报错问题

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

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

When running the stopserver script:

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

I find the following exception in the stopServer.log:

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)

 

A user must have access to their $HOME directory.

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.

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

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

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

posted @ 2019-04-03 16:13  liujiacai  阅读(1256)  评论(0编辑  收藏  举报