Eclipse Marketplace error - Unexpected exception:

2020-05-29 19:39发布

When I try to surf the Marketplace in Eclipse it gives me this :

Unexpected exception: org/eclipse/equinox/internal/p2/repository/RepositoryTransport
java.lang.reflect.InvocationTargetException

what might be the problem? any solutions?

20条回答
唯我独甜
2楼-- · 2020-05-29 20:31

I experienced this issue when the SOCKS proxy in eclipse was incorrectly configured. My machine which sits in a LAN connects to the internet using an HTTP proxy. In the Network Connections tab 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 !!

Resolution Steps

  1. In Eclipse, click Windows -> Preferences
  2. Search for 'Network Connections' in the 'filter' textbox
  3. 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.
  4. Set SOCKS proxy ( If you have a SOCKS proxy server configured), otherwise clear this row.
  5. Apply the changes and save it.

Now Marketplace should become accessible for you.

For details on Network Connections configuration in Eclipse, use the following link

http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-net-preferences.htm&_sm_au_=iDMfvB6nQs52SSSM

查看更多
三岁会撩人
3楼-- · 2020-05-29 20:38

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

Window-> Preferences -> General -> Network Connection.

Now remove the proxy bypass and clear SOCKS IP.

NOTE:- This will work if your have proxy server. Thank You

查看更多
一纸荒年 Trace。
4楼-- · 2020-05-29 20:39

I suffered a similar exception, tried out all the possible proxy settings and later found that the problem is with jre7.

This is what worked for me:

I replaced jre7 with jre6 and now it's working fine.

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.

查看更多
老娘就宠你
5楼-- · 2020-05-29 20:40

If you're behind a proxy, there should be a configuration script in your IE Lan setting. You can find it either in IE or google setting. E.g in IE

  1. go to "internet options->Connections->Lan settings" and make sure "Use automatic configuration script" is selected
  2. In eclipse, go to "Windows->preferences->General->Networc connection and make it "Native"
  3. eclipse should already find and select it. E.g. Schema: HTTP
    Host: Dynamic Port: Dynamic Provider: Native Auth: No Username: //blank Passwrod: //blank
查看更多
戒情不戒烟
6楼-- · 2020-05-29 20:41

I'm having the same issue. Using MyEclipse Enterprise Workbench 10.6. I have the proxy properly set in IE/Explorer... and if I change I can't get out of the corporate network. I have internet just fine. Eclipse just doesn't seem to use what is set. I actually DON'T think eclipse recognizes the IR proxy... I don't think it recognizes any proxy at all. So if you're behind a corporate security solution like me, and require a proxy, you're out of luck.

FIXED: MyEclipse was picking up the proxy, however you then must TELL it use them. Under MyEclipse>Preferences>General>network Connections, change Active Provider from direct to native, and you should double check the native proxies ME has discovered are correct.

查看更多
我只想做你的唯一
7楼-- · 2020-05-29 20:43

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:

  1. Go to Window-> Preferences -> General -> Network Connection.
  2. Change the Settings: Active Provider-> Manual-> check---> HTTP, HTTPS and SOCS
  3. That's all, restart Eclipse and you are good to go!
查看更多
登录 后发表回答