Hi,

I'm playing with Camel 2.0 in OSGi (Equinox) and found that TypeConverters are loaded by camel-osgi only from bundles that have been STARTED. The reason why TypeConverter loading from RESOLVED bundles doesn't work is that the OsgiPackageScanClassResolver relies on a BundleContext which is null for bundles in RESOLVED state (as required by the OSGi spec 4.1 section 4.3.17). This leads to a NullPointerException. If it should be possible by design that TypeConverters can also be loaded from bundles in RESOLVED state, please let me know then I'll try to create a patch.

Btw, great work that you all did for Camel 2.0. It's a pleasure to work with it!

Thanks,
Martin

Reply via email to