Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » p2 error: "Unable to read repository"
p2 error: "Unable to read repository" [message #485890] Tue, 15 September 2009 13:08 Go to previous message
Eclipse UserFriend
Originally posted by:


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
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: - - [15/Sep/2009:11:54:03 +0200] "HEAD
/UpdateSite/content.jar HTTP/1.1" 200 - "-" "Jakarta
Commons-HttpClient/3.1" - - [15/Sep/2009:11:54:03 +0200] "GET
/UpdateSite/content.jar HTTP/1.1" 200 26169 "-" "Jakarta

However, on the client side this error occurs:

Checking repository
ERROR:Unable to read repository at
org.eclipse.equinox.internal.p2.metadata.repository.CacheMan ager.updateCache(

org.eclipse.equinox.internal.p2.metadata.repository.CacheMan ager.createCache(

org.eclipse.equinox.internal.provisional.spi.p2.metadata.rep ository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleM

org.eclipse.equinox.internal.provisional.spi.p2.metadata.rep ository.SimpleMetadataRepositoryFactory.validateAndLoad(Simp

org.eclipse.equinox.internal.provisional.spi.p2.metadata.rep ository.SimpleMetadataRepositoryFactory.load(SimpleMetadataR

org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.factoryLoad( :54)

org.eclipse.equinox.internal.p2.repository.helpers.AbstractR epositoryManager.loadRepository(AbstractRepositoryManager.ja va:669)

org.eclipse.equinox.internal.p2.repository.helpers.AbstractR epositoryManager.loadRepository(AbstractRepositoryManager.ja va:617)

org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.loadRepository(MetadataRepositoryManager.j ava:92)

org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.loadRepository(MetadataRepositoryManager.j ava: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").

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

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,

[1] RCP_Application
[2] /p2/examples/org.eclipse.equinox.p2.examples.rcp.prestartupd ate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/P

[3] inox/msg06476.html

[5] inox/msg06450.html

[6] inox/msg06426.html
Read Message
Read Message
Previous Topic:Unable to load Bundle
Next Topic:[p2] Director leaves local update sites in 'Available Software Sites'
Goto Forum:

Current Time: Mon Apr 23 11:40:44 GMT 2018

Powered by FUDForum. Page generated in 0.01888 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software