Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
9.0
Description
We are using a library with fragmented OSGi bundles in our NetBeans Platform application. The bundles resolve fine, but during runtime the NetigsoLoader instance that was created for the bundle tries to load classes from the fragment, instead of the host. This is not desirable, and e.g. Felix throws an exception (see link 1).
The issue is in Netigso, in the createLoader method, which doesn't handle the caught BundleException correctly (thrown when trying to start the fragment, see link 2).
I have fixed this for our application by simply looking up the fragments host bundle and substituting the fragment with its host in the created NetigsoLoader.
Apache Felix, class Felix, line 2062
Apache NetBeans, class Netigso, line 329
Attachments
Issue Links
- links to