0

在 Mac 上运行 Eclipse Junos安装了 p4eclipse 插件。系统重新启动后,我试图重新启动 Eclipse,但它抛出异常(如日志中所示)。


    com.perforce.p4java.exception.AccessException: Your session has expired, please login again.

    at com.perforce.p4java.impl.mapbased.server.Server.handleErrorStr(Server.java:4453)
    at com.perforce.p4java.impl.mapbased.server.Server.getDepots(Server.java:2673)
    at com.perforce.team.core.p4java.P4Connection$2.run(P4Connection.java:1057)
    at com.perforce.team.core.p4java.P4Resource.runOperation(P4Resource.java:90)
    at com.perforce.team.core.p4java.P4Connection.refresh(P4Connection.java:1060)
    at com.perforce.team.core.p4java.P4Connection.isSandbox(P4Connection.java:1015)
    at com.perforce.team.ui.decorator.PerforceDecorator.updateSandBoxAndStreamDecoration(PerforceDecorator.java:288)
    at com.perforce.team.ui.decorator.PerforceDecorator.decorateProjectWithConnection(PerforceDecorator.java:275)
    at com.perforce.team.ui.decorator.PerforceDecorator.getProjectText(PerforceDecorator.java:848)
    at com.perforce.team.ui.decorator.PerforceDecorator.decorateProject(PerforceDecorator.java:562)
    at com.perforce.team.ui.decorator.PerforceDecorator.decorateText(PerforceDecorator.java:812)
    at org.eclipse.ui.internal.decorators.FullDecoratorDefinition.decorateText(FullDecoratorDefinition.java:134)

此外,在堆栈跟踪下面:

 !ENTRY org.eclipse.equinox.security 4 0 2013-05-31 11:14:09.882
 !MESSAGE Secure storage was unable to retrieve the master password from the OS keyring. 

 Make sure that this application has access to the OS keyring. 
 If the error persists, the password recovery feature could be used, or secure storage can be deleted and re-created.


 java.lang.SecurityException: Could not obtain password.  Result: -25300
    at org.eclipse.equinox.internal.security.osx.OSXProvider.getPassword(Native Method)
    at           org.eclipse.equinox.internal.security.osx.OSXProvider.getPassword(OSXProvider.java:45)
    at org.eclipse.equinox.internal.security.storage.PasswordProviderModuleExt.getPassword(PasswordProviderModuleExt.java:35)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:259)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:224)
    at org.eclipse.equinox.internal.security.storage.SecurePreferences.get(SecurePreferences.java:262)
    at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.get(SecurePreferencesWrapper.java:106)
    at com.perforce.team.core.P4SecureStore.get(P4SecureStore.java:36)
    at com.perforce.team.core.ConnectionParameters.getPassword(ConnectionParameters.java:265)
    at com.perforce.team.ui.P4ConnectionManager.handleLoginError(P4ConnectionManager.java:374)
    at com.perforce.team.ui.P4ConnectionManager.internalRetry(P4ConnectionManager.java:803)
    at com.perforce.team.ui.P4ConnectionManager.shouldRetry(P4ConnectionManager.java:833)
    at com.perforce.team.core.p4java.P4Connection.handleError(P4Connection.java:1649)
    at com.perforce.team.core.p4java.P4Resource.runOperation(P4Resource.java:94)
    at com.perforce.team.core.p4java.P4Connection.refresh(P4Connection.java:1060)

我以前也看到过这个问题,当时我别无选择,只能重新安装 Eclipse。

请帮我解决这个问题。另外,如何避免再次遇到此问题。

提前致谢。

华盛顿大学。

4

1 回答 1

2

这看起来像 Eclipse 错误:https ://bugs.eclipse.org/bugs/show_bug.cgi?id=391455

该错误建议您转到“首选项/常规/安全/安全存储”并打开“OS X Keystore Integration”

于 2013-10-10T08:33:36.817 回答