(转)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 @   liujiacai  阅读(1277)  评论(0编辑  收藏  举报
编辑推荐:
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
阅读排行:
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
历史上的今天:
2018-04-03 (转)10 分钟内快速构建能够承载海量数据的 nginx 日志分析与报警平台
点击右上角即可分享
微信分享提示