My guess is that org.eclipse.core.runtime isn't getting activated at all or is failing to activate resulting in a null fwkWiring.  Although I would have expected some other exception in the log about failing to activate the org.eclipse.core.runtime bundle.  If you are able to debug check that the org.eclipse.core.internal.runtime.InternalPlatform.start(BundleContext) method is even getting called.

Tom
 
 
 
----- Original message -----
From: Johan Compagner <[email protected]>
Sent by: [email protected]
To: P2 developer discussions <[email protected]>
Cc:
Subject: [EXTERNAL] Re: [p2-dev] anybody knows why an upgrade of our product (but not an eclipse upgrade) goes wrong like this?
Date: Wed, Dec 4, 2019 7:36 AM
 
there is no simple test i am afraid
its really our install from a product version 2019.9 -> 2019.12
(and i think even the latest version of our product of .9 because it seems that bit older 2019.9_rc -> .12 works)
 
i checked the code
 
  Collection<BundleCapability> matchingBundleCapabilities = fwkWiring.findProviders(ModuleContainer
 
and it bombs out there
so very like the fwkWiring is null
 
that is assigned in the start() method 
 
 public void start(BundleContext runtimeContext) {
this.context = runtimeContext;
this.fwkWiring = runtimeContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION).adapt(FrameworkWiring.class);
 
so it seems that somehow that returns null (i guess that start() method has to be called)
 
i can try to debug it a bit.
 
 
On Wed, 4 Dec 2019 at 13:23, Mickael Istria <[email protected]> wrote:
Hi,
 
In any case, a NPE is a bug. So please report it, with the simplest steps to reproduce you can figure out.
_______________________________________________
p2-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/p2-dev
 

_______________________________________________
p2-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/p2-dev

Reply via email to