[ 
https://issues.apache.org/activemq/browse/SMX4NMR-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54282#action_54282
 ] 

Freeman Fang commented on SMX4NMR-147:
--------------------------------------

currently we get exception like
[System Bundle Shutdown] INFO 
org.apache.geronimo.blueprint.container.BeanRecipe - Error destroying bean 
adminCommandsService
org.osgi.service.blueprint.container.ServiceUnavailableException: The Blueprint 
container is being or has been destroyed
        at 
org.apache.geronimo.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:175)
        at 
org.apache.geronimo.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:49)
        at 
org.apache.geronimo.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:200)
        at 
org.apache.geronimo.blueprint.container.AbstractServiceReferenceRecipe$CgLibProxyFactory$1.loadObject(AbstractServiceReferenceRecipe.java:578)
        at 
org.fusesource.commons.management.ManagementStrategy$$EnhancerByCGLIB$$911efb39.unmanageObject(<generated>)
        at 
org.apache.servicemix.jbi.deployer.impl.AdminCommandsImpl.destroy(AdminCommandsImpl.java:452)
        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.apache.geronimo.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:206)
        at 
org.apache.geronimo.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:639)
        at 
org.apache.geronimo.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:548)
        at 
org.apache.geronimo.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:288)
        at 
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:644)
        at 
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:795)
        at 
org.apache.geronimo.blueprint.container.BlueprintExtender.destroyContext(BlueprintExtender.java:172)
        at 
org.apache.geronimo.blueprint.container.BlueprintExtender.bundleChanged(BlueprintExtender.java:164)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
        at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
        at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
        at 
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350)
        at 
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301)
        at 
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:470)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:546)
        at 
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1098)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:593)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:261)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:216)
        at 
org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
        at 
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:685)
        at 
org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:583)
        at 
org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:243)
        at java.lang.Thread.run(Thread.java:613)
[System Bundle Shutdown] INFO 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl - Stopping component 
servicemix-http
[System Bundle Shutdown] INFO 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl - Shutting down 
component servicemix-http
[System Bundle Shutdown] WARN org.apache.servicemix.jbi.deployer.impl.Deployer 
- Error shutting down JBI artifact
javax.jbi.JBIException: Error calling shutdown
        at 
org.apache.servicemix.common.AsyncBaseLifeCycle.shutDown(AsyncBaseLifeCycle.java:262)
        at 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl$ComponentWrapper.shutDown(ComponentImpl.java:279)
        at 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl.shutDown(ComponentImpl.java:184)
        at 
org.apache.servicemix.jbi.deployer.impl.ComponentInstaller.stop(ComponentInstaller.java:202)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.onBundleStopping(Deployer.java:373)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java:287)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.destroy(Deployer.java:270)
        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.apache.geronimo.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:206)
        at 
org.apache.geronimo.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:639)
        at 
org.apache.geronimo.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:548)
        at 
org.apache.geronimo.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:288)
        at 
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:644)
        at 
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:795)
        at 
org.apache.geronimo.blueprint.container.BlueprintExtender.destroyContext(BlueprintExtender.java:172)
        at 
org.apache.geronimo.blueprint.container.BlueprintExtender.bundleChanged(BlueprintExtender.java:164)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
        at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
        at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
        at 
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350)
        at 
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301)
        at 
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:470)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:546)
        at 
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1098)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:593)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:261)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:216)
        at 
org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
        at 
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:685)
        at 
org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:583)
        at 
org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:243)
        at java.lang.Thread.run(Thread.java:613)
Caused by: org.osgi.service.blueprint.container.ServiceUnavailableException: 
Service is unavailable
        at 
org.apache.geronimo.blueprint.container.ReferenceListRecipe$ServiceDispatcher.call(ReferenceListRecipe.java:204)
        at 
org.apache.geronimo.blueprint.container.AbstractServiceReferenceRecipe$CgLibProxyFactory$1.loadObject(AbstractServiceReferenceRecipe.java:578)
        at 
$javax.management.MBeanServer$$EnhancerByCGLIB$$797ba857.isRegistered(<generated>)
        at 
org.apache.servicemix.common.AsyncBaseLifeCycle.doShutDown(AsyncBaseLifeCycle.java:273)
        at 
org.apache.servicemix.common.DefaultComponent.doShutDown(DefaultComponent.java:375)
        at 
org.apache.servicemix.http.HttpComponent.doShutDown(HttpComponent.java:280)
        at 
org.apache.servicemix.common.AsyncBaseLifeCycle.shutDown(AsyncBaseLifeCycle.java:253)
        ... 34 more
[System Bundle Shutdown] INFO 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl - Stopping component 
servicemix-http
[System Bundle Shutdown] INFO 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl - Shutting down 
component servicemix-http
[System Bundle Shutdown] WARN org.apache.servicemix.jbi.deployer.impl.Deployer 
- Error when shutting down component
javax.jbi.JBIException: Error calling shutdown
        at 
org.apache.servicemix.common.AsyncBaseLifeCycle.shutDown(AsyncBaseLifeCycle.java:262)
        at 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl$ComponentWrapper.shutDown(ComponentImpl.java:279)
        at 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl.shutDown(ComponentImpl.java:184)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterComponent(Deployer.java:467)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterDeployedComponent(Deployer.java:671)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer$1.removedService(Deployer.java:247)
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:922)
        at 
org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:351)
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:865)
        at 
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:124)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:930)
        at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
        at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
        at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:757)
        at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:712)
        at 
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:220)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterServices(Deployer.java:769)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.onBundleStopping(Deployer.java:379)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java:287)
        at 
org.apache.servicemix.jbi.deployer.impl.Deployer.destroy(Deployer.java:270)
        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.apache.geronimo.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:206)
        at 
org.apache.geronimo.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:639)
        at 
org.apache.geronimo.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:548)
        at 
org.apache.geronimo.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:288)
        at 
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:644)
        at 
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:795)
        at 
org.apache.geronimo.blueprint.container.BlueprintExtender.destroyContext(BlueprintExtender.java:172)
        at 
org.apache.geronimo.blueprint.container.BlueprintExtender.bundleChanged(BlueprintExtender.java:164)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
        at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
        at 
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
        at 
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350)
        at 
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301)
        at 
org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:470)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:546)
        at 
org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1098)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:593)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:261)
        at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:216)
        at 
org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
        at 
org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:685)
        at 
org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:583)
        at 
org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:243)
        at java.lang.Thread.run(Thread.java:613)
Caused by: org.osgi.service.blueprint.container.ServiceUnavailableException: 
Service is unavailable
        at 
org.apache.geronimo.blueprint.container.ReferenceListRecipe$ServiceDispatcher.call(ReferenceListRecipe.java:204)
        at 
org.apache.geronimo.blueprint.container.AbstractServiceReferenceRecipe$CgLibProxyFactory$1.loadObject(AbstractServiceReferenceRecipe.java:578)
        at 
$javax.management.MBeanServer$$EnhancerByCGLIB$$797ba857.isRegistered(<generated>)
        at 
org.apache.servicemix.common.AsyncBaseLifeCycle.doShutDown(AsyncBaseLifeCycle.java:273)
        at 
org.apache.servicemix.common.DefaultComponent.doShutDown(DefaultComponent.java:375)
        at 
org.apache.servicemix.http.HttpComponent.doShutDown(HttpComponent.java:280)
        at 
org.apache.servicemix.common.AsyncBaseLifeCycle.shutDown(AsyncBaseLifeCycle.java:253)
        ... 47 more
[System Bundle Shutdown] INFO 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl - Stopping component 
servicemix-jsr181
[System Bundle Shutdown] INFO 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl - Shutting down 
component servicemix-jsr181
[System Bundle Shutdown] INFO 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl - Stopping component 
servicemix-jsr181
[System Bundle Shutdown] INFO 
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl - Shutting down 
component servicemix-jsr181
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Disabling SLF4J API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Disabling Jakarta Commons Logging API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Disabling Log4J API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Disabling Avalon Logger API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] 
: Disabling JULI Logger API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.exam.junit.extender.impl.internal.TestBundleObserver]
 : Unregistered testcase 
[org.apache.servicemix.jbi.itests.IntegrationTest.testServiceAssembly]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.exam.rbc.internal.Activator]
 : RMI registry stopped

and the test just hang there

I guess this is caused by blueprint service bundle shutdown too early, which 
cause component/SA bundle can't shutdown correctly.

> Enable IntegrationTest with karaf
> ---------------------------------
>
>                 Key: SMX4NMR-147
>                 URL: https://issues.apache.org/activemq/browse/SMX4NMR-147
>             Project: ServiceMix NMR
>          Issue Type: Test
>            Reporter: Freeman Fang
>


-- 
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