Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9164

errorHandlerRef causes NoSuchBeanException on uninstall

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Specifying an errorHandlerRef on a route causes following WARN on uninstall

      2015-09-25 06:16:45,058 | WARN  | l Console Thread | faultManagementLifecycleStrategy | 58 - org.apache.camel.camel-core - 2.16.0.SNAPSHOT | Could not unregister error handler: org.apache.camel.management.mbean.ManagedErrorHandler@27181de1 as ErrorHandler MBean.
      org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: myErrorHandler of type: org.apache.camel.builder.ErrorHandlerBuilder
      	at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:159)
      	at org.apache.camel.impl.DefaultRouteContext.mandatoryLookup(DefaultRouteContext.java:151)
      	at org.apache.camel.builder.ErrorHandlerBuilderRef.lookupErrorHandlerBuilder(ErrorHandlerBuilderRef.java:137)
      	at org.apache.camel.management.DefaultManagementNamingStrategy.getObjectNameForErrorHandler(DefaultManagementNamingStrategy.java:168)
      	at org.apache.camel.management.ManagedManagementStrategy.getManagedObjectName(ManagedManagementStrategy.java:108)
      	at org.apache.camel.management.ManagedManagementStrategy.unmanageObject(ManagedManagementStrategy.java:147)
      	at org.apache.camel.management.DefaultManagementLifecycleStrategy.unmanageObject(DefaultManagementLifecycleStrategy.java:844)
      	at org.apache.camel.management.DefaultManagementLifecycleStrategy.onErrorHandlerRemove(DefaultManagementLifecycleStrategy.java:641)
      	at org.apache.camel.impl.RouteService.stopChildService(RouteService.java:351)
      	at org.apache.camel.impl.RouteService.doStop(RouteService.java:237)
      	at org.apache.camel.support.ChildServiceSupport.stop(ChildServiceSupport.java:77)
      	at org.apache.camel.support.ChildServiceSupport.stop(ChildServiceSupport.java:101)
      	at org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:141)
      	at org.apache.camel.util.ServiceHelper.stopAndShutdownService(ServiceHelper.java:204)
      	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:3017)
      	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:3042)
      	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:3030)
      	at org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:2865)
      	at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102)
      	at org.apache.camel.blueprint.BlueprintCamelContext.destroy(BlueprintCamelContext.java:122)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_79]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_79]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_79]
      	at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_79]
      	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)
      	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)
      	at org.apache.aries.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:863)
      	at org.apache.aries.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:320)
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:723)
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.tidyupComponents(BlueprintContainerImpl.java:917)
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:867)
      	at org.apache.aries.blueprint.container.BlueprintExtender$3.run(BlueprintExtender.java:319)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_79]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
      	at org.apache.aries.blueprint.container.BlueprintExtender.destroyContainer(BlueprintExtender.java:340)
      	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:236)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)
      	at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)
      	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2528)
      	at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2640)
      	at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1043)
      	at org.apache.karaf.shell.osgi.UninstallBundle.doExecute(UninstallBundle.java:34)
      	at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:37)
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_79]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_79]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_79]
      	at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_79]
      	at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[11:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[11:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.karaf.shell.console.commands.$BlueprintCommand2105444579.execute(Unknown Source)[17:org.apache.karaf.shell.console:2.4.2]
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[17:org.apache.karaf.shell.console:2.4.2]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[17:org.apache.karaf.shell.console:2.4.2]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[17:org.apache.karaf.shell.console:2.4.2]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[17:org.apache.karaf.shell.console:2.4.2]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[17:org.apache.karaf.shell.console:2.4.2]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[17:org.apache.karaf.shell.console:2.4.2]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[17:org.apache.karaf.shell.console:2.4.2]
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:195)[17:org.apache.karaf.shell.console:2.4.2]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            igarashitm Tomohisa Igarashi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: