Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 46397 invoked from network); 3 Jun 2009 09:36:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jun 2009 09:36:18 -0000 Received: (qmail 83548 invoked by uid 500); 3 Jun 2009 09:36:30 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 83463 invoked by uid 500); 3 Jun 2009 09:36:29 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 83453 invoked by uid 99); 3 Jun 2009 09:36:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 09:36:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 09:36:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5A15D234C004 for ; Wed, 3 Jun 2009 02:36:07 -0700 (PDT) Message-ID: <1544699960.1244021767357.JavaMail.jira@brutus> Date: Wed, 3 Jun 2009 02:36:07 -0700 (PDT) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Subject: [jira] Reopened: (FELIX-1185) If a static/mandatory reference to a service is unregistered, the component should be deactivated synchronously instead of asynchronously In-Reply-To: <306391124.1243487745543.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-1185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger reopened FELIX-1185: -------------------------------------- Reopening issue to apply cleanup fixes by Agemo Cui > If a static/mandatory reference to a service is unregistered, the component should be deactivated synchronously instead of asynchronously > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: FELIX-1185 > URL: https://issues.apache.org/jira/browse/FELIX-1185 > Project: Felix > Issue Type: Bug > Components: Declarative Services (SCR) > Affects Versions: scr-1.0.8 > Reporter: Agemo Cui > Assignee: Felix Meschberger > Fix For: scr-1.0.10 > > Attachments: AbstractComponentManager.java, AbstractComponentManager.java, ComponentFactoryImpl.java, scr-changes on revision 778604.zip > > > In the specification cmpn 112.3.3 Reference Policy, it says "Component configurations are deactivated before any bound service for a reference having a static policy becomes unavailable." > My understanding is the deactivate method of the component must be called before any unbind method for a static/mandatory reference is called. And it's reasonable for a static/mandatory reference to be still available in the deactivate method. > If the component is deactivated asynchronously when a static/mandatory reference to a service is unregistered, then it's possible that the unbind method is called before the deactivate method is called, which makes the service unavailable in the deactivate method. > This bug may relate to FELIX-1178. > The fix for this bug should also fix FELIX-1178. No need to add a new flag. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.