Eclipse Marketplace 错误 - 意外异常:org/eclipse/equinox/internal/p2/repository/RepositoryTransport
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10562012/
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 Marketplace error - Unexpected exception: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
提问by iprateekk
When I try to surf the Marketplace in Eclipse it gives me this :
当我尝试在 Eclipse 中浏览市场时,它给了我这个:
Unexpected exception: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
java.lang.reflect.InvocationTargetException
what might be the problem? any solutions?
可能是什么问题?任何解决方案?
采纳答案by Arun Jolly
I experienced this issue when the SOCKSproxy in eclipse was incorrectly configured. My machine which sits in a LAN connects to the internet using an HTTP proxy. In the Network Connectionstab in eclipse, i had configured the HTTP, HTTPS and SOCKS proxy. The SOCKS proxy was not required in this case, and on clearing the SOCKS proxy, the error disappeared and Eclipse Marketplace became accessible...woohoo !!
当eclipse 中的SOCKS代理配置不正确时,我遇到了这个问题。我位于 LAN 中的机器使用 HTTP 代理连接到互联网。在eclipse的Network Connections选项卡中,我配置了 HTTP、HTTPS 和 SOCKS 代理。在这种情况下不需要 SOCKS 代理,并且在清除 SOCKS 代理时,错误消失并且 Eclipse Marketplace 变得可访问......呜呜!!
Resolution Steps
解决步骤
- In Eclipse, click Windows -> Preferences
- Search for 'Network Connections' in the 'filter' textbox
- Set HTTP and HTTPS proxies correctly ( If you are connecting to the internet using a proxy)
Note : If you are connecting to the internet without proxy, use the 'Direct' profile setting in the 'ActionProvider' drop down. Else use the 'Manual' setting. - Set SOCKS proxy ( If you have a SOCKS proxy server configured), otherwise clear this row.
- Apply the changes and save it.
- 在 Eclipse 中,单击 Windows -> 首选项
- 在“过滤器”文本框中搜索“网络连接”
- 正确设置 HTTP 和 HTTPS 代理(如果您使用代理连接到 Internet)
注意:如果您在没有代理的情况下连接到 Internet,请使用“ActionProvider”下拉菜单中的“Direct”配置文件设置。否则使用“手动”设置。 - 设置 SOCKS 代理(如果您配置了 SOCKS 代理服务器),否则清除此行。
- 应用更改并保存。
Now Marketplace should become accessible for you.
现在,您应该可以访问 Marketplace。
For details on Network Connections configurationin Eclipse, use the following link
有关Eclipse 中网络连接配置的详细信息,请使用以下链接
回答by Nauman Khalid
This problem raises because you could not access your Internet via eclipse. There could be a solution among answers listed above. I solve this problem with different approach. Linux has built-in SSH support to it is always important to check the local host address. And also no need to bypass traffic. So you can Go to
出现此问题是因为您无法通过 eclipse 访问 Internet。上面列出的答案中可能有一个解决方案。我用不同的方法解决了这个问题。Linux 具有内置的 SSH 支持,因此检查本地主机地址始终很重要。而且也不需要绕过流量。所以你可以去
Window-> Preferences -> General -> Network Connection.
窗口-> 首选项-> 常规-> 网络连接。
Now remove the proxy bypass and clear SOCKS IP.
现在删除代理绕过并清除 SOCKS IP。
NOTE:- This will work if your have proxy server. Thank You
注意:- 如果您有代理服务器,这将起作用。谢谢你
回答by RicardoT
I have installed version 3.7.2 of eclipse indigo and run into the exact same issue (after a clean eclipse/marketplace install). I resolved the problem by updating the marketplace plugin to a more recent version (in eclipse go to "Help -> Check for Updates" and the update should be listed there).
我已经安装了 eclipse indigo 3.7.2 版并遇到了完全相同的问题(在干净的 eclipse/marketplace 安装之后)。我通过将市场插件更新到更新版本解决了这个问题(在 eclipse 中转到“帮助 -> 检查更新”,更新应该在那里列出)。
回答by Ali Ahmad
I have got the same problem with eclipse indigo. I figure out the eclipse doesn't find the appropriate network Proxy for my network, because by default it uses window's proxy. So i just set windows network Proxy using control Panel or you can set it through Internet explorer.This worked for me.
我对 eclipse indigo 也有同样的问题。我发现 eclipse 没有为我的网络找到合适的网络代理,因为默认情况下它使用窗口的代理。所以我只是使用控制面板设置 Windows 网络代理,或者您可以通过 Internet Explorer 设置它。这对我有用。
回答by markimark
I had the same problem, but using firefox. Fixed it by changing
我有同样的问题,但使用火狐浏览器。通过更改修复它
firefox>tools>options>advanced: network tab: settings:
firefox>工具>选项>高级:网络选项卡:设置:
and then selecting Auto-detect proxy settings for this network.
然后选择此网络的自动检测代理设置。
After I did this eclipse connected to the marketplace with no prob.
在我完成这个日食之后,没有任何问题可以连接到市场。
回答by LahiruBandara
If you are a constant proxy changer like me for various reasons (university, home, workplace and so on…) you are most likely to get this error due to improper configuration of connection settings in the eclipse IDE. All you have to do it play around with the current settings and get it to working state. Here's how:
如果由于各种原因(大学、家庭、工作场所等),您像我一样经常更换代理,那么您很可能会由于 Eclipse IDE 中的连接设置配置不当而出现此错误。您所要做的就是使用当前设置并使其进入工作状态。就是这样:
- Go to Window-> Preferences -> General -> Network Connection.
- Change the Settings: Active Provider-> Manual-> check---> HTTP, HTTPS and SOCS
- That's all, restart Eclipse and you are good to go!
- 转到窗口-> 首选项-> 常规-> 网络连接。
- 更改设置:Active Provider-> Manual-> check---> HTTP, HTTPS and SOCS
- 就是这样,重新启动 Eclipse,您就可以开始了!
回答by awolski
I recently had this issue after making the switch to JDK 7 in Eclipse.
我最近在 Eclipse 中切换到 JDK 7 后遇到了这个问题。
I solved the problem by changing the selected Installed JRE back to JDK 6 (Preferences -> Java -> Installed JREs). After making this change I could access the Marketplace.
我通过将选定的已安装 JRE 更改回 JDK 6(首选项 -> Java -> 已安装 JRE)解决了该问题。进行此更改后,我可以访问市场。
Once I'd finished with the installing what I needed from the marketplace I switched my installed JRE back to the JDK 7 one.
一旦我完成了从市场上安装我需要的东西,我将我安装的 JRE 切换回 JDK 7 之一。
回答by ganji praveen
I suffered a similar exception, tried out all the possible proxy settings and later found that the problem is with jre7
.
我遇到了类似的异常,尝试了所有可能的代理设置,后来发现问题出在jre7
.
This is what worked for me:
这对我有用:
I replaced jre7
with jre6
and now it's working fine.
我替换jre7
了jre6
,现在它工作正常。
jre7
has some security issues so that was creating a problem in accessing proxy. if java1.7
is your project requirement u can install jdk1.7
and set java home as jdk1.7
, but uninstall jre7
so the eclipse backend and other system components will use jre6
, but the developed application will be jdk1.7
compliant.
jre7
有一些安全问题,因此在访问代理时出现问题。如果java1.7
是您的项目要求,您可以安装jdk1.7
和设置 java home 为jdk1.7
,但卸载jre7
以便 eclipse 后端和其他系统组件将使用jre6
,但开发的应用程序将是jdk1.7
兼容的。
回答by Adir D
i had the same issue for Jrebel. I tried all above, was not working for me.
我对 Jrebel 有同样的问题。我尝试了以上所有方法,但对我不起作用。
Solution worked:
解决方案有效:
- Restart Eclipse
- Go to - Preferences > General > Network Connections
- Change to Direct (all will be empty)
- 重启 Eclipse
- 转到 - 首选项 > 常规 > 网络连接
- 改为直接(全部为空)
Jrebel activated successfully.
Jrebel 激活成功。
回答by james2611nov
I did nothing. Just restarted eclipse and tried after sometime. It worked!! May be marketplace.eclipse.org was down for a while.
我什么也没做。刚刚重新启动eclipse并在一段时间后尝试。有效!!可能是marketplace.eclipse.org 关闭了一段时间。