Upon migration to JDK 9+, our OSGi container built around apache Felix started to fail installing an extension bundle. The error message is:
Caused by: org.osgi.framework.BundleException: Could not create bundle object.
at org.apache.felix.framework.Felix.installBundle(Felix.java:3095)
...
Caused by: java.lang.UnsupportedOperationException: Unable to add extension bundle.
at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:439)
at org.apache.felix.framework.Felix.installBundle(Felix.java:3061)
...
Our Felix version is 5.6.10, which is currently the latest available. Relevant part of the bundle manifest:
Created-By: Apache Maven Bundle Plugin
Fragment-Host: system.bundle; extension:=framework
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=9.0))"
Tool: Bnd-3.5.0.201709291849