Eclipse luna - 内部错误,尝试从 git 导入
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27209692/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse luna - Internal error, trying to import from git
提问by Victor2748
I am using Eclipse Luna, and I am trying to import a project from github. However, it says "Internal error; consult Eclipse error log" when I pasted the URI in:
我正在使用 Eclipse Luna,我正在尝试从 github 导入一个项目。但是,当我将 URI 粘贴到以下位置时,它显示“内部错误;请查阅 Eclipse 错误日志”:
The project is valid. I've tried a few projects, and they all worked on my older Juno version of eclipse, but all failed on Luna, just like above. What should I do to reproduce this problem?
该项目有效。我尝试了一些项目,它们都在我的旧版 Juno eclipse 上工作,但在 Luna 上都失败了,就像上面一样。我应该怎么做才能重现这个问题?
Here is my Eclipse log error: http://pastebin.com/QcfF4Xsq
这是我的 Eclipse 日志错误:http: //pastebin.com/QcfF4Xsq
回答by russellhoff
I solved this problem going to "Preferences > General > Security > Secure Storage > Contents", open "[Default Secure Storage]", deleting the "GIT" row and finally restarting Eclipse.
我解决了这个问题,转到“首选项 > 常规 > 安全 > 安全存储 > 内容”,打开“[默认安全存储]”,删除“GIT”行,最后重新启动 Eclipse。
回答by VonC
You have a similar error message with other Eclipse-based products, like RTC:
对于其他基于 Eclipse 的产品,例如 RTC,您有类似的错误消息:
A summary of the problem is that Eclipse uses a default location on your machine that is the same for all your Eclipse installs.
So if you have installed and used 32-bit Eclipse, then your secure storage requires the 32-bit plugins to access.
When you try to use a 64-bit Eclipse, it will try to read that secure storage and will fail because it is using the 64-bit plugins to read the storage.The solution is to tell your Eclipse to use a different secure storage area. You can do this by running Eclipse with the following option:
问题的总结是 Eclipse 使用您机器上的默认位置,该位置对于您的所有 Eclipse 安装都是相同的。
因此,如果您已经安装并使用了 32 位 Eclipse,那么您的安全存储需要 32 位插件才能访问。
当您尝试使用 64 位 Eclipse 时,它会尝试读取该安全存储,但会失败,因为它使用 64 位插件读取存储。解决方案是告诉您的 Eclipse 使用不同的安全存储区域。您可以通过使用以下选项运行 Eclipse 来完成此操作:
-eclipse.keyring <file_path>
where
<file_path>
is the location of the file which you wish to use as your new secure storage area.
<file_path>
您希望用作新安全存储区的文件的位置在哪里。
(You can check by the way if you have a consistent Eclipse distribution: all 32 bits or all 64 bits)
(您可以顺便检查一下您是否有一致的 Eclipse 发行版:全部 32 位或全部 64 位)
Note that another product (NetBeans) resolved the same error message like so (issue 211863)
请注意,另一个产品 (NetBeans) 解决了相同的错误消息(问题 211863)
I found the problem.
NetBeans is detecting a remnant of an Eclipse IDE installation. Once I deleted the file, the errors in the log went away.
我发现了问题。
NetBeans 正在检测 Eclipse IDE 安装的残余。一旦我删除了文件,日志中的错误就消失了。
C:\Documents and Settings\ttroy\.eclipse\org.eclipse.equinox.security\secure_storage
On Windows 7 or more:
在 Windows 7 或更高版本上:
C:\Users\<username>\.eclipse\org.eclipse.equinox.security\secure_storage
# or
%USERPROFILE%\.eclipse\org.eclipse.equinox.security\secure_storage
回答by Thakhani Tharage
Delete C:\Users\USERNAME\.eclipse\org.eclipse.equinox.security\secure_storage
it will resolve your problem.
删除C:\Users\USERNAME\.eclipse\org.eclipse.equinox.security\secure_storage
它将解决您的问题。
回答by ssk
This is the message I see in the eclipse Error log.
这是我在 eclipse 错误日志中看到的消息。
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.
安全存储无法从操作系统密钥环中检索主密码。确保此应用程序可以访问操作系统密钥环。如果错误仍然存在,则可以使用密码恢复功能,或者可以删除并重新创建安全存储。
So as others said if you delete the secure_storage file and it should solve the problem. On a mac, better use command line.
所以正如其他人所说,如果你删除了 secure_storage 文件,它应该可以解决问题。在 Mac 上,最好使用命令行。
/Users/< userid >/.eclipse/org.eclipse.equinox.security