Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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.