现象: eclipse的preferences里面须要保存密码,保存报错
Could Not Accept Changes
The currrently displayed page contains invalid values
或者是保存后。再次打开preferences窗体,提示
The currrently displayed page contains invalid values
环境:
Windows 2008
remote windows terminal 远程桌面訪问
clipse Juno
可能有多人用一个帐号登录Windows OS。
排错:
查看eclipse日志,文件%workspace%\.metadata\.log
看到例如以下内容:
!ENTRY org.eclipse.equinox.security 4 0 2014-04-26 01:00:28.919
!MESSAGE
Secure storage was unable to retrieve the master password. If secure storage was created using a different Windows account, you‘ll have to switch back to that account. Alternatively, you can use the password recovery, or delete and re-create secure storage.
!STACK 0
org.eclipse.equinox.security.storage.StorageException: Secure storage was unable to retrieve the master password. If secure storage was created using a different Windows account, you‘ll have to switch back to that account. Alternatively, you can use the password recovery, or delete and re-create secure storage.
at org.eclipse.equinox.internal.security.win32.WinCrypto.getPassword(WinCrypto.java:62)
解决的方法:
打开eclipse preferences。选择General->Security->Secure Storage。去掉Windows Integration,保留UI Prompt。确定,关闭Preferences窗体。
注意假设多个人在这台机器启动了 eclipse,操作前请其它人退出eclipse。
不方便的地方:
eclipse在保存读取口令等敏感数据到preferences的时候。可能会提示用户设置/填写口令。
首次设置口令的时候会提示是否须要提供恢复口令的手段,能够不提供。取消就可以。