Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse mars/luna unable to read repository

I can't use the default repositories with eclipse mars. For example the http://download.eclipse.org/eclipse/updates/4.5/. There is no problem with the proxy. I can reach http://download.eclipse.org/eclipse/updates/4.5/ with the internal web browser of eclipse. The problem is that it always tries to connect to the url http://download.eclipse.org/eclipse/updates/4.5/compositeContent.xml which does not exist (getting 404 opening it in the browser). I really don't know why.

The error is:

Unable to connect to repository http://download.eclipse.org/eclipse/updates/4.5/compositeContent.xml

Stacktrace:

java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:259)
at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

EDIT: Tried out Eclipse Luna, same problem.

like image 278
Florian Avatar asked Nov 10 '22 05:11

Florian


1 Answers

I think there is 'something' wrong with the repository where this update is located and nothing wrong with your network connection or proxy.

What is this 'something' - If you look at this link https://wiki.eclipse.org/Equinox/p2/p2_index ('What happens if I get it Wrong' section) - It says that if the p2.index file has an incorrect entry specifying compositeContent.xml where the repository is a content.xml will cause p2 to only look for compositeContent.xml and never look for the content.xml.

Maybe this is what is happening in your case and since eclipse is not getting the file it is throwing the error which you are seeing.

Way ahead will be to - contact the eclipse.org on their forum/JIRA to point it out and get the p2.index file corrected.

like image 84
Dhruv Rai Puri Avatar answered Nov 15 '22 10:11

Dhruv Rai Puri