When I opened Eclipse Marketplace, I found the following error:
--------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------
Message:
Cannot install remote marketplace Locations:connection failed
This is the 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)
--------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------
The solution is to modify the Eclipse.ini and then restart Eclipse
-Vmargs-xmx512m ... -djava.net.preferipv4stack=True
本文转自:41313381
Cannot complete request to marketplace cannot open eclipse marketplace