Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For bundle developers, it is probably best to explicitly define any created threads as daemon or non-daemon to avoid any ambiguity.

Why do I get an exception when installing fragments?

Certain types of bundle fragments are still not yet fully supported by Felix and the framework will by default throw an exception when such fragments are installed:

No Format

org.osgi.framework.BundleException: Fragments with exports, imports, or native code are not currently supported.
  at org.apache.felix.framework.util.manifestparser.ManifestParser.validateFragment(ManifestParser.java:270)
  (...)

to turn this into a warning, add the following configuration setting:

No Format

felix.fragment.validation=warning

This just turns the install exception into a warning, it does not affect the current state of fragment support in the Felix framework.