[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] p2 error: "Unable to read repository"

Hi

I'm trying to add auto-update capabilities to our RCP-based software using the p2 system. I followed the "Adding Self-Update to an RCP Application" tutorial [1] and used the latest version of P2Util.java from the CVS repository [2]. The software has a simple test plugin that I would like to update and everything is packaged as a feature.

By copying the plugins dependencies from the prestartupdate example, I've managed to export my application and make it connect successfully to the HTTP repository listed in my p2.inf file, using the fully qualified action "org.eclipse.equinox.p2.touchpoint.eclipse.addRepository" [3]. As requested on this page [4], the "org.eclipse.ecf.provider.filetransfer" plugin is included.


In my server logs, I can see the following lines:

192.168.5.10 - - [15/Sep/2009:11:54:03 +0200] "HEAD /UpdateSite/content.jar HTTP/1.1" 200 - "-" "Jakarta Commons-HttpClient/3.1"
192.168.5.10 - - [15/Sep/2009:11:54:03 +0200] "GET /UpdateSite/content.jar HTTP/1.1" 200 26169 "-" "Jakarta Commons-HttpClient/3.1"



However, on the client side this error occurs:

Checking repository http://192.168.0.103/UpdateSite
ERROR:Unable to read repository at http://192.168.0.103/UpdateSite/content.jar.
TRACE:
org.eclipse.equinox.internal.p2.metadata.repository.CacheManager.updateCache(CacheManager.java:416)


org.eclipse.equinox.internal.p2.metadata.repository.CacheManager.createCache(CacheManager.java:195)

org.eclipse.equinox.internal.provisional.spi.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:60)

org.eclipse.equinox.internal.provisional.spi.p2.metadata.repository.SimpleMetadataRepositoryFactory.validateAndLoad(SimpleMetadataRepositoryFactory.java:99)

org.eclipse.equinox.internal.provisional.spi.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:87)

org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:54)

org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:669)

org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:617)

org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)

org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:88)

[...]


After reading this post [5], I've added all of the "org.eclipse.equinox.p2.*" plugins minus the sources ones but without more luck.


I've tried to change the repositories in the p2.inf file and used those of Galileo, but the error is the same ("Unable to read repository at http://download.eclipse.org/releases/galileo/content.jar";).

Finally I checked the behaviour of the prestartupdate example, and it appears that the same error occurs with both repositories (mine and galileo).

So what did I did wrong? I checked every documentation I could find on the net and didn't find the answer. This message on the list [6] looks a bit similar but the response links to a thread problem which I don't have (yet).


Thanks in advance, Maxime


[1] http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application
[2] http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox/p2/examples/org.eclipse.equinox.p2.examples.rcp.prestartupdate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/P2Util.java?root=RT_Project&view=markup


[3] http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg06476.html

[4] http://www.toedter.com/blog/?p=24#comment-5652
[5] http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg06450.html


[6] http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg06426.html