Hi, It seems that your feature is changing the OSGi framework state and ROOT REGION.
Can you please share your features XML ? That's probably a mistake in the req/cap of your features. Regards JB On 21/05/2019 22:30, KARR, DAVID wrote: > I'm working with a team that is trying to upgrade a legacy service from Karaf > 3.0.1 to 4.2.5. When they try to deploy it, they're seeing the following: > > --------------------------- > 2019-05-15T21:45:36,871 | INFO | activator-1-thread-2 | Activator > | 12 - org.apache.karaf.deployer.features - 4.2.5 | Deployment > finished. Registering FeatureDeploymentListener > 2019-05-15T21:45:36,885 | ERROR | activator-1-thread-2 | > FeatureDeploymentListener | 12 - org.apache.karaf.deployer.features - > 4.2.5 | Unable to update deployed features for bundle: > org.apache.felix.framework - 5.6.12 > java.lang.NullPointerException: null > at > org.apache.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:247) > [12:org.apache.karaf.deployer.features:4.2.5] > at > org.apache.karaf.deployer.features.FeatureDeploymentListener.init(FeatureDeploymentListener.java:95) > [12:org.apache.karaf.deployer.features:4.2.5] > --------------------- > > About all I can tell from this is that the NPE occurs in the following > "removeAll" call: > -------------------- > Map<String, Set<String>> requirements = > featuresService.listRequirements(); > requirements.get(ROOT_REGION).removeAll(reqsToRemove); > requirements.get(ROOT_REGION).addAll(reqsToAdd); > -------------------- > > What other information can we provide to help diagnose this? > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
