码迷,mamicode.com
首页 > 系统相关 > 详细

Cannot complete request to Marketplace不能打开eclipse marketplace

时间:2018-04-02 16:04:30      阅读:340      评论:0      收藏:0      [点我收藏+]

标签:print   $1   s/4   install   thread   nbsp   mod   重启   service   

当打开eclipse marketplace的时候时候,发现有如下错误:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Message:

Cannot install remote marketplace locations: Connection failed
This is most often caused by a problem with your internet connection. Please check your internet connection and retry.

Exception Stack Trace:

org.eclipse.core.runtime.CoreException: Unable to read repository at http://marketplace.eclipse.org/catalogs/api/p.
 at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:181)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.eclipse.epp.internal.mpc.core.util.AbstractP2TransportFactory.invokeStream(AbstractP2TransportFactory.java:35)
 at org.eclipse.epp.internal.mpc.core.util.TransportFactory$1.stream(TransportFactory.java:69)
 at org.eclipse.epp.internal.mpc.core.service.RemoteMarketplaceService.processRequest(RemoteMarketplaceService.java:131)
 at org.eclipse.epp.internal.mpc.core.service.RemoteMarketplaceService.processRequest(RemoteMarketplaceService.java:85)
 at org.eclipse.epp.internal.mpc.core.service.RemoteMarketplaceService.processRequest(RemoteMarketplaceService.java:72)
 at org.eclipse.epp.internal.mpc.core.service.DefaultCatalogService.listCatalogs(DefaultCatalogService.java:36)
 at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand$5.run(MarketplaceWizardCommand.java:254)
 at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

解决方案是修改eclipse.ini,然后重启eclipse

-vmargs
-Xmx512m
...
-Djava.net.preferIPv4Stack=true



本文转自:https://blog.csdn.net/faq_tong/article/details/41313381

Cannot complete request to Marketplace不能打开eclipse marketplace

标签:print   $1   s/4   install   thread   nbsp   mod   重启   service   

原文地址:https://www.cnblogs.com/nizuimeiabc1/p/8693634.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!