Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 19523 invoked from network); 6 Sep 2007 08:30:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 08:30:57 -0000 Received: (qmail 98462 invoked by uid 500); 6 Sep 2007 08:30:51 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 98372 invoked by uid 500); 6 Sep 2007 08:30:50 -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 98107 invoked by uid 99); 6 Sep 2007 08:30:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 01:30:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 08:32:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1FD1D7141F2 for ; Thu, 6 Sep 2007 01:30:33 -0700 (PDT) Message-ID: <16164317.1189067433127.JavaMail.jira@brutus> Date: Thu, 6 Sep 2007 01:30:33 -0700 (PDT) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Subject: [jira] Work started: (FELIX-356) DependencyManager.bind may bind to null and does not correctly check for success In-Reply-To: <27342816.1189067433016.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on FELIX-356 started by Felix Meschberger. > DependencyManager.bind may bind to null and does not correctly check for success > -------------------------------------------------------------------------------- > > Key: FELIX-356 > URL: https://issues.apache.org/jira/browse/FELIX-356 > Project: Felix > Issue Type: Bug > Components: Declarative Services > Reporter: Felix Meschberger > Assignee: Felix Meschberger > > In an active environment a service to be bound may disappear between the access to the service reference and the acquiry of the service itself. As a consequence the DependencyManager.bind(Object) method may call the component's bind method with a null instance, which is not expected. > The DependencyManager.bind method should check whether the service still exists before calling the component's bind method. > As a consequence the checks whether at least one service could be bound for mandatory references and that at most one service is bound for singular references have to be rethought: Currently binding fails if the first service reference cannot be bound for singular references. In such situations the binding also fails if calling the bind method fails. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.