felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-322) Registering a PersistenceManager service causes a ClassCastException
Date Fri, 06 Jul 2007 13:39:04 GMT
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
             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.


Mime
View raw message