原文:https://blog.csdn.net/baidu_32739019/article/details/78405444
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.
-
Make sure the user has proper permission to the $HOME/.java directory.
-
Backup the /.java directory, some where outside of your environment, then deleted the /.java directory.