By the way, if reflection is installed by a feature, resolved (not
started) can be enough as it exports/imports package (it just doesn't
call activator, but there's not in reflection bundle). So the feature
resolver put in resolved state which is good.
Regards
JB
On 04/20/2016 09:58 AM, mdo wrote:
Just for future reference:
I had to restart Karaf once again to get it up and running. For unknown
reasons the reflections bundle was only in state RESOLVED before and
additionally I had to install javassist. Despite the RESOLVED state before,
my own bundle was able to use the Reflections class but this failed
internally as described.
Having javassist and the ServiceMix(!) bundle for org.reflections in place
this is working:
new Reflections("my.package", MyClass.class.getClassLoader())
--
View this message in context:
http://karaf.922171.n3.nabble.com/NPE-with-org-reflections-tp4046252p4046297.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com