异常信息:
org.eclipse.equinox.security.storage.StorageException: No password provided. at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.java:237) at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferencesWrapper.java:110) at org.eclipse.egit.core.securestorage.EGitSecureStore.putCredentials(EGitSecureStore.java:58) at org.eclipse.egit.ui.internal.SecureStoreUtils.storeCredentials(SecureStoreUtils.java:35) at org.eclipse.egit.ui.internal.credentials.LoginService.login(LoginService.java:37) at org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider$2.run(EGitCredentialsProvider.java:227) at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:167) at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:165) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
或者
Could Not Accept Changes The currrently displayed page contains invalid values
异常分析:
Eclipse记忆密码时,会在“C:\Users\……\.eclipse\org.eclipse.equinox.security”目录下生成“secure_storage”文件。
“secure_storage”文件中保存有“master password”以及与各Eclipse插件相对应的“业务密码”,记忆“业务密码”之前需要验证“master password”的正确性。第一条异常信息“No
password provided”是在输入了“业务密码”后,并选择记忆密码保存时出现的,所以其应该表示的是没有提供“master password”或在使用默认的“master password”(Windows Integration)出现故障。
解决办法01:
打开eclipse preferences,选择General->Security->Secure Storage,去掉Windows Integration,保留UI Prompt,确定,关闭Preferences窗口。
然后重新输入“业务密码”,选择记忆密码并保存。这时会出现以下界面:
master password
是否设置密码找回
密码找回问题设置
注意:每次重启Eclipse均需要输入一次master password;
解决方法02:
前面提到过“secure_storage”文件,当出现相应异常信息时,亦可尝试将此文件删除,重新输入各插件“业务密码”来完成记忆密码的功能。注意:需要选中Windows Integration。
Best Wishes For You!
时间: 2025-01-28 09:28:14