Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 76088 invoked from network); 6 Jul 2007 06:39:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 06:39:32 -0000 Received: (qmail 87629 invoked by uid 500); 6 Jul 2007 13:39:30 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 87586 invoked by uid 500); 6 Jul 2007 13:39:30 -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 87568 invoked by uid 99); 6 Jul 2007 13:39:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 06:39:30 -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; Fri, 06 Jul 2007 06:39:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CC0EE7141F1 for ; Fri, 6 Jul 2007 06:39:04 -0700 (PDT) Message-ID: <9697925.1183729144832.JavaMail.jira@brutus> Date: Fri, 6 Jul 2007 06:39:04 -0700 (PDT) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Subject: [jira] Work started: (FELIX-322) Registering a PersistenceManager service causes a ClassCastException In-Reply-To: <31024435.1183729144528.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-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on FELIX-322 started by Felix Meschberger. > Registering a PersistenceManager service causes a ClassCastException > -------------------------------------------------------------------- > > Key: FELIX-322 > URL: https://issues.apache.org/jira/browse/FELIX-322 > Project: Felix > Issue Type: Bug > Components: Configuration Admin > Reporter: Felix Meschberger > Assignee: Felix Meschberger > Fix For: 1.0.0 > > > When a Configuration object is requested and has to be loaded, the ConfigurationManager asks for the list of current PersistenceManagers. If a service has been registered, this list is being built and sorted according to service.cmRanking property of the registered PersistenceManagers. The Comparator used assumes the objects to be compared to be ServiceReference instances (to get at the service properties) while the actual objects are the services themselves. Hence the ClassCastException and hence a side effect of not being able to access configuration any more. > Thanks to Tom Remoleur for reporting this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.