Servicemix container fails to exit in smx4
------------------------------------------

                 Key: SMX4NMR-39
                 URL: https://issues.apache.org/activemq/browse/SMX4NMR-39
             Project: ServiceMix NMR
          Issue Type: Bug
    Affects Versions: 1.0-m2
            Reporter: Edell Nolan


If you start up the container and allow the components to be deployed and 
started and then attempt an exit from the container you get the following for 
each of the components when trying to unregister them.

This is on the windows platform.

12:10:45,406 | WARN | Timer-3 | ManagedJbiRegistry | 
bi.management.ManagedJbiRegistry 101 | Unable to unregister managed Component: 
javax.management.InstanceNotFoundException: 
org.apache.servicemix:Type=Component,Name=servicemix-jsr181,SubType=LifeCycle
javax.management.InstanceNotFoundException: 
org.apache.servicemix:Type=Component,Name=servicemix-jsr181,SubType=LifeCycle
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:354)
at 
com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:527)
at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:64)
at 
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:78)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at 
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:36)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at 
org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.unregisterMBean(Unknown Source)
at 
org.apache.servicemix.jbi.management.ManagementAgent.unregister(ManagementAgent.java:105)
at 
org.apache.servicemix.jbi.management.ManagedJbiRegistry.unregisterComponent(ManagedJbiRegistry.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.springframework.osgi.util.internal.ReflectionUtils.invokeMethod(ReflectionUtils.java:108)
at 
org.springframework.osgi.config.CustomListenerAdapterUtils.invokeCustomMethods(CustomListenerAdapterUtils.java:154)
at 
org.springframework.osgi.config.OsgiServiceLifecycleListenerAdapter.unbind(OsgiServiceLifecycleListenerAdapter.java:210)
at 
org.springframework.osgi.service.importer.support.internal.util.OsgiServiceBindingUtils.callListenersUnbind(OsgiServiceBindingUtils.java:71)
at 
org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection$Listener.serviceChanged(OsgiServiceCollection.java:132)
at 
org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection.destroy(OsgiServiceCollection.java:304)
at 
org.springframework.osgi.service.importer.support.DisposableBeanRunnableAdapter.run(DisposableBeanRunnableAdapter.java:43)
at 
org.springframework.osgi.service.importer.support.AbstractServiceImporterProxyFactoryBean.destroy(AbstractServiceImporterProxyFactoryBean.java:56)
at 
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:151)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:456)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:434)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:407)
at 
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:854)
at 
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.destroyBeans(AbstractOsgiBundleApplicationContext.java:211)
at 
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:832)
at 
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleApplicationContext.java:204)
at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDelegatedExecutionApplicationContext.java:169)
at 
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:354)
at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:181)
at 
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:795)
at 
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$1.run(ContextLoaderListener.java:539)
at 
org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:60)
at 
org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
12:10:45,812 | INFO | Timer-3 | ManagedJbiRegistry | 
bi.management.ManagedJbiRegistry 97 | Unregistering Component: [EMAIL 
PROTECTED] with properties {NAME=servicemix-xmpp, 
objectClass=[Ljava.lang.String;@804a77, service.id=112, TYPE=binding-component}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to