Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Platform.getBundle returns null when self-hosting.
Platform.getBundle returns null when self-hosting. [message #1113177] Fri, 20 September 2013 15:11 Go to next message
Eduardo Pereira is currently offline Eduardo Pereira
Messages: 4
Registered: July 2013
Junior Member
I have a headless RCP application and we use P2 to install new bundles in the application. The application works fine when we run the executable but it fails during development when self-hosting. The problem is that the API Platform.getBundle returns null for the newly installed bundle.

I tried it using the osgi/p2 console (provaddrepo, then provinstall and confapply)
and ss does not show the newly installed bundle either.

I opened the bundles.info file and it does not have the bundle either but the bundle is in .p2\org.eclipse.equinox.p2.touchpoint.eclipse\plugins.

Do I need to invoke something beyond confapply?
Re: Platform.getBundle returns null when self-hosting. [message #1116515 is a reply to message #1113177] Wed, 25 September 2013 10:47 Go to previous message
Eduardo Pereira is currently offline Eduardo Pereira
Messages: 4
Registered: July 2013
Junior Member
I tried to debug this. InstallBundleAction is not called when self-hosting but P2 does not throw any exception.
Any pointers on how to debug this?
Previous Topic:Refresh osgi bundle via config.ini
Next Topic:How to build content of rt.equinox.bundles.git with maven?
Goto Forum:
  


Current Time: Sat Jul 26 05:20:38 EDT 2014

Powered by FUDForum. Page generated in 0.01844 seconds