Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
subsystem-2.0.4
-
On karaf 4 with subsystem-2.0.3-SNAPSHOT revision 1702099
Description
Restart of the osgi container does not restart subsystem core because of an error related to missing resource org.apache.aries.subsystem.resource.synthesized
The deployment manifest contains the entry below in the provision-resource header:
org.apache.aries.subsystem.resource.synthesized;resourceId=-1;deployed-version=0.0.0;type=org.apache.aries.subsystem.resource.synthesized
On restart it tries to load the resource because it is in the deployment manifest and can't find the resource in the osgi framework.
It seems the 'synthesized' type is related to something which looks like a missing capability/service capability placeholder while installing/resolving. It is not installed because the ResourceInstaller has an if statement returning an installer which does nothing. So I guess it should also not be added to the manifest.
I therefore patched the ProvisionResourceHeader to check for this 'synthesized' type and ignore it for the Provision-resource header. I'm not sure if this is the best solution but it does solve the issue we are having.
The reason for patching it there is because it would be least affecting the entire process. Just like ignoring it before it is installed in the osgi framework it will not also be ignored before adding it to the manifest.
Attachments
Attachments
Issue Links
- blocks
-
ARIES-1377 Subsystems 2.0.4 Release
- Closed
- relates to
-
ARIES-1357 BasicSubsystem can be used by the subsystem install process a factor 6 times faster
- Closed