You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2013/02/10 08:53:13 UTC

[jira] [Updated] (FELIX-3787) NPE on reference update

     [ https://issues.apache.org/jira/browse/FELIX-3787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks updated FELIX-3787:
--------------------------------

    Fix Version/s:     (was: scr-1.6.4)
                   scr-1.8.0
    
> NPE on reference update
> -----------------------
>
>                 Key: FELIX-3787
>                 URL: https://issues.apache.org/jira/browse/FELIX-3787
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.6.2
>            Reporter: Dmytro Pishchukhin
>            Assignee: Felix Meschberger
>             Fix For: scr-1.8.0
>
>
> I defined reference with annotation:
>     @Reference(referenceInterface = Controller.class, cardinality = ReferenceCardinality.MANDATORY_UNARY, policyOption = ReferencePolicyOption.GREEDY)
>     protected Controller controller;
> when I install a new service I got an error:
> java.lang.NullPointerException
>         at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:383)
>         at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:159)
>         at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
>         at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
>         at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
>         at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4260)
>         at org.apache.felix.framework.Felix.registerService(Felix.java:3275) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira