SCR registers service component twice after stopping/starting a bundle
----------------------------------------------------------------------

                 Key: FELIX-550
                 URL: https://issues.apache.org/jira/browse/FELIX-550
             Project: Felix
          Issue Type: Bug
          Components: Declarative Services (SCR)
         Environment: JDK 1.6.0_03 / WinXP SP2
            Reporter: Paul Neyens


When stopping and starting a bundle (from the shell) that has a component which 
is also registered as a service, this service is registered twice from time to 
time.

What I am seeing, is that when starting the bundle (after stopping it first), 
the enable method (AbstractComponentManager) is called starting an 
enableInternal' (including an activateInternal) on the component actor thread.
Approximately at the same time, an update call is made from the configuration 
manager (on some thread from the CM, through method 'update' in 
ImmediateComponentManager's anonymous ManagedService inner class) resulting 
eventually in a call to 'reactivate' which first deactivates 
(deactivateInternal) on the current thread (CM thread). That's where things 
clash, I guess.

I cannot reproduce this behaviour when logging level is set to debug.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to