You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by lekkie <le...@gmail.com> on 2010/04/16 18:22:47 UTC

Apache ServiceMix NMR OSGi fails to start.

This is quite strange as I have not seen thsi before.

I tried starting servicemix and I realised Apache ServiceMix NMR OSGi
(1.2.0.fuse-01-00) fails. See below:

karaf@root> list | grep NMR
[  52] [Active     ] [            ] [       ] [   60] Apache ServiceMix NMR
API(1.2.0.fuse-01-00)
[  53] [Active     ] [            ] [       ] [   60] Apache ServiceMix NMR
Core (1.2.0.fuse-01-00)
[  54] [Active     ] [Failure     ] [       ] [   60] Apache ServiceMix NMR
OSGi (1.2.0.fuse-01-00)
[  55] [Active     ] [            ] [       ] [   60] Apache ServiceMix NMR
Spring (1.2.0.fuse-01-00)
[  56] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix NMR
Commands (1.2.0.fuse-01-00)
[  57] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix NMR
Management (1.2.0.fuse-01-00)
[ 178] [Active     ] [            ] [       ] [   60] Apache ServiceMix CXF
Transport for NMR (4.2.0.fuse-01-00)
[ 179] [Active     ] [            ] [       ] [   60] Apache ServiceMix CXF
Binding for NMR (4.2.0.fuse-01-00)


My karaf.log looks like this

16:57:10,148 | WARN  | pool-2-thread-3  | ComponentRegistryImpl            |
mix.nmr.core.ServiceRegistryImpl   75 | Unable to unregister service
servicemix-jms with properties {NAME=servicemix-jms, TYPE=binding-component,
objectClass=[Ljava.lang.String;@119c2af, service.id=313}. Reason:
java.lang.NullPointerException
java.lang.NullPointerException
	at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.close(DeliveryChannelImpl.java:78)
	at
org.apache.servicemix.jbi.runtime.impl.ComponentContextImpl.destroy(ComponentContextImpl.java:87)
	at
org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doUnregister(ComponentRegistryImpl.java:121)
	at
org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doUnregister(ComponentRegistryImpl.java:38)
	at
org.apache.servicemix.nmr.core.ServiceRegistryImpl.unregister(ServiceRegistryImpl.java:73)
	at
org.apache.servicemix.nmr.osgi.OsgiServiceRegistryTracker.removedService(OsgiServiceRegistryTracker.java:88)
	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:104)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
	at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:755)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:710)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
	at
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterServices(Deployer.java:784)
	at
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterComponent(Deployer.java:492)
	at
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterDeployedComponent(Deployer.java:686)
	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:104)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
	at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:755)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:710)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
	at
org.springframework.osgi.service.exporter.support.internal.support.ServiceRegistrationDecorator.unregister(ServiceRegistrationDecorator.java:65)
	at
org.springframework.osgi.util.OsgiServiceUtils.unregisterService(OsgiServiceUtils.java:41)
	at
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.unregisterService(OsgiServiceFactoryBean.java:372)
	at
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.unregisterService(OsgiServiceFactoryBean.java:362)
	at
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.unregisterService(OsgiServiceFactoryBean.java:105)
	at
org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.unregisterService(ExporterController.java:48)
	at
org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.stopExporter(DefaultMandatoryDependencyManager.java:329)
	at
org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.access$500(DefaultMandatoryDependencyManager.java:59)
	at
org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager$ImporterDependencyListener.importerUnsatisfied(DefaultMandatoryDependencyManager.java:127)
	at
org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$Listener.notifyUnsatisfiedStateListeners(ServiceDynamicInterceptor.java:272)
	at
org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$Listener.serviceChanged(ServiceDynamicInterceptor.java:240)
	at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
	at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:755)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:710)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
	at
org.apache.geronimo.blueprint.container.ServiceRecipe.unregister(ServiceRecipe.java:182)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.unregisterServices(BlueprintContainerImpl.java:636)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:334)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:211)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
16:57:10,148 | INFO  | pool-2-thread-3  | OsgiServiceFactoryBean           |
r.support.OsgiServiceFactoryBean  373 | Unregistered service
[ServiceRegistrationWrapper for
{javax.jbi.component.Component}={org.springframework.osgi.bean.name=servicemix-jms,
Bundle-SymbolicName=servicemix-jms, Bundle-Version=2010.01.0.fuse-01-00,
NAME=servicemix-jms, TYPE=binding-component, service.id=312}]
16:57:10,148 | INFO  | pool-2-thread-3  | ComponentImpl                    |
deployer.artifacts.ComponentImpl  155 | Stopping component servicemix-http
16:57:10,148 | INFO  | pool-2-thread-3  | ComponentImpl                    |
deployer.artifacts.ComponentImpl  177 | Shutting down component
servicemix-http
16:57:10,163 | INFO  | pool-2-thread-3  | ComponentRegistryImpl            |
ntime.impl.ComponentRegistryImpl  116 | JBI component unregistered with
properties: {NAME=servicemix-http, TYPE=binding-component,
objectClass=[Ljava.lang.String;@b09ddb, service.id=316}
16:57:10,163 | WARN  | pool-2-thread-3  | ComponentRegistryImpl            |
mix.nmr.core.ServiceRegistryImpl   75 | Unable to unregister service
servicemix-http with properties {NAME=servicemix-http,
TYPE=binding-component, objectClass=[Ljava.lang.String;@b09ddb,
service.id=316}. Reason: java.lang.NullPointerException
java.lang.NullPointerException
	at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.close(DeliveryChannelImpl.java:78)
	at
org.apache.servicemix.jbi.runtime.impl.ComponentContextImpl.destroy(ComponentContextImpl.java:87)
	at
org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doUnregister(ComponentRegistryImpl.java:121)
	at
org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doUnregister(ComponentRegistryImpl.java:38)
	at
org.apache.servicemix.nmr.core.ServiceRegistryImpl.unregister(ServiceRegistryImpl.java:73)
	at
org.apache.servicemix.nmr.osgi.OsgiServiceRegistryTracker.removedService(OsgiServiceRegistryTracker.java:88)
	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:104)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
	at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:755)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:710)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
	at
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterServices(Deployer.java:784)
	at
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterComponent(Deployer.java:492)
	at
org.apache.servicemix.jbi.deployer.impl.Deployer.unregisterDeployedComponent(Deployer.java:686)
	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:104)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
	at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:755)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:710)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
	at
org.springframework.osgi.service.exporter.support.internal.support.ServiceRegistrationDecorator.unregister(ServiceRegistrationDecorator.java:65)
	at
org.springframework.osgi.util.OsgiServiceUtils.unregisterService(OsgiServiceUtils.java:41)
	at
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.unregisterService(OsgiServiceFactoryBean.java:372)
	at
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.unregisterService(OsgiServiceFactoryBean.java:362)
	at
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.unregisterService(OsgiServiceFactoryBean.java:105)
	at
org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.unregisterService(ExporterController.java:48)
	at
org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.stopExporter(DefaultMandatoryDependencyManager.java:329)
	at
org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.access$500(DefaultMandatoryDependencyManager.java:59)
	at
org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager$ImporterDependencyListener.importerUnsatisfied(DefaultMandatoryDependencyManager.java:127)
	at
org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$Listener.notifyUnsatisfiedStateListeners(ServiceDynamicInterceptor.java:272)
	at
org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$Listener.serviceChanged(ServiceDynamicInterceptor.java:240)
	at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)
	at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
	at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:755)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:710)
	at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
	at
org.apache.geronimo.blueprint.container.ServiceRecipe.unregister(ServiceRecipe.java:182)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.unregisterServices(BlueprintContainerImpl.java:636)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:334)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:211)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
16:57:10,179 | INFO  | pool-2-thread-3  | OsgiServiceFactoryBean           |
r.support.OsgiServiceFactoryBean  373 | Unregistered service
[ServiceRegistrationWrapper for
{javax.jbi.component.Component}={org.springframework.osgi.bean.name=servicemix-http,
Bundle-SymbolicName=servicemix-http, Bundle-Version=2010.01.0.fuse-01-00,
NAME=servicemix-http, TYPE=binding-component, service.id=315}]
16:57:10,179 | ERROR | pool-2-thread-3  | BlueprintContainerImpl           |
container.BlueprintContainerImpl  337 | Unable to start blueprint container
for bundle org.apache.servicemix.nmr.osgi
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
intialize bean .component-4
	at
org.apache.geronimo.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:519)
	at
org.apache.geronimo.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)
	at
org.apache.geronimo.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:212)
	at
org.apache.geronimo.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:140)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:603)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:310)
	at
org.apache.geronimo.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:211)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
	at
org.apache.servicemix.jbi.cluster.engine.ClusterEngine.getAllEndpoints(ClusterEngine.java:524)
	at
org.apache.servicemix.jbi.cluster.engine.ClusterEngine.getSelector(ClusterEngine.java:450)
	at
org.apache.servicemix.jbi.cluster.engine.ClusterEngine.invalidateSelector(ClusterEngine.java:438)
	at
org.apache.servicemix.jbi.cluster.engine.ClusterEngine.endpointRegistered(ClusterEngine.java:394)
	at
org.apache.servicemix.nmr.core.EndpointRegistryImpl.register(EndpointRegistryImpl.java:130)
	at
org.apache.servicemix.nmr.core.EndpointRegistryImpl.register(EndpointRegistryImpl.java:49)
	at
org.apache.servicemix.nmr.osgi.OsgiServiceRegistryTracker.addingService(OsgiServiceRegistryTracker.java:79)
	at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)
	at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)
	at
org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184)
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339)
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273)
	at
org.apache.servicemix.nmr.osgi.OsgiServiceRegistryTracker.init(OsgiServiceRegistryTracker.java:69)
	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:597)
	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.internalCreate(BeanRecipe.java:517)
	... 14 more


Needless to say that all nmr based applciation refused to start. How can I
resolve this?

kr.
-- 
View this message in context: http://old.nabble.com/Apache-ServiceMix-NMR-OSGi-fails-to-start.-tp28268956p28268956.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.