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?