Re: exception trying to access to referenced service in destroy-method

2011-03-15 Thread KcTang
Thanks for the response. I've filed a bug for this. Looking at the codes in BlueprintRepository, looks like we're destroying objects in reverse creation order. public void destroy() { // destroy objects in reverse creation order List order = new ArrayList(creationOrder);

Re: exception trying to access to referenced service in destroy-method

2011-03-15 Thread Alasdair Nottingham
Hi, I believe this is a bug. The blueprint specification 121.3.11 says: "Destroying all component instances in reverse dependency order, see Reverse Dependency Order on page 200." and the code clearly does not do this. Please raise a bug on JIRA here: https://issues.apache.org/jira/browse/ARIES

exception trying to access to referenced service in destroy-method

2011-03-15 Thread KcTang
Hi, i've got a working blueprint bundle to register some default OBR repositories on initialization of the bundle. The xml config looks like: http://www.osgi.org/xmlns/blueprint/v1.0.0";> Both BundleContext & RepositoryAdmin are injected to RepositoryR