(转)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.

转载于:https://www.cnblogs.com/liujiacai/p/10649600.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值