Hi,

I'm trying to use PAX-CDI on karaf. I'm looking at version 0.12.0.

I have a problem with a CDI producer method that has the 
@OsgiServiceProvider Qualifier annotation.
According to the doc: 

Qualifier for automatic registration of CDI beans as OSGi service.
> In application code, this qualifier shall only be used on classes and 
> producer methods.


When I use the annotation, I get the following error:

15:19:10.895 [Start Level Event Dispatcher] INFO  
o.o.p.c.e.i.c.ComponentLifecycleManager - component Greeter, Name:null, 
WebBeans Type:PRODUCERMETHOD, API 
Types:[java.lang.Object,sample.osgiProviderProducerMethod.Greeter], 
Qualifiers:[javax.enterprise.inject.Any,org.ops4j.pax.cdi.api.OsgiServiceProvider]
 is available
15:19:10.912 [Start Level Event Dispatcher] ERROR 
o.o.pax.cdi.spi.AbstractCdiContainer - 
java.lang.NullPointerException: null
    at 
org.ops4j.pax.cdi.extension.impl.component.ComponentLifecycleManager.registerService(ComponentLifecycleManager.java:183)
 ~[pax-cdi-extension-0.13.0-SNAPSHOT.jar:na]
    at 
org.ops4j.pax.cdi.extension.impl.component.ComponentLifecycleManager.start(ComponentLifecycleManager.java:107)
 ~[pax-cdi-extension-0.13.0-SNAPSHOT.jar:na]
    at 
org.ops4j.pax.cdi.extension.impl.component.ComponentLifecycleManager$$OwbNormalScopeProxy0.start(org/ops4j/pax/cdi/extension/impl/component/ComponentLifecycleManager.java)
 ~[na:na]
    at 
org.ops4j.pax.cdi.extension.impl.BeanBundleImpl.onInitialized(BeanBundleImpl.java:60)
 ~[pax-cdi-extension-0.13.0-SNAPSHOT.jar:na]
    ...

I have created a pull request on Github 
<https://github.com/ops4j/org.ops4j.pax.cdi/pull/34> with a fix for this.

Can someone please look into this?

Thanks,
Regards,

-Maarten Winkels

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to