org.osgi.service.blueprint.container.ComponentDefinitionException

org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean synchronizer

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by Manohar Gandra,
  • Stack trace

    • org.osgi.service.blueprint.container.ComponentDefinitionException: org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean synchronizer at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:309)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:251)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.ServiceRecipe.internalCreate(ServiceRecipe.java:148)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[14:org.apache.aries.blueprint.core:1.4.2] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.6.0_34] at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.6.0_34] at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:682)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:377)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)[14:org.apache.aries.blueprint.core:1.4.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.6.0_34] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.6.0_34] at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.6.0_34] at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[14:org.apache.aries.blueprint.core:1.4.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.6.0_34] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.6.0_34] at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.6.0_34] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)[:1.6.0_34] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)[:1.6.0_34] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)[:1.6.0_34] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.6.0_34] at java.lang.Thread.run(Thread.java:701)[:1.6.0_34] Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean synchronizer at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:714)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[14:org.apache.aries.blueprint.core:1.4.2] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.6.0_34] at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.6.0_34] at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:284)[14:org.apache.aries.blueprint.core:1.4.2] ... 24 more Caused by: java.lang.NullPointerException at org.apache.karaf.cellar.bundle.BundleSynchronizer.getSyncPolicy(BundleSynchronizer.java:221) at org.apache.karaf.cellar.bundle.BundleSynchronizer.sync(BundleSynchronizer.java:64) at org.apache.karaf.cellar.bundle.BundleSynchronizer.init(BundleSynchronizer.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_34] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.6.0_34] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.6.0_34] at java.lang.reflect.Method.invoke(Method.java:622)[:1.6.0_34] at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)[14:org.apache.aries.blueprint.core:1.4.2] at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)[14:org.apache.aries.blueprint.core:1.4.2] ... 33 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.