camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-9164) errorHandlerRef causes NoSuchBeanException on uninstall
Date Fri, 25 Sep 2015 12:11:04 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen reassigned CAMEL-9164:
----------------------------------

    Assignee: Claus Ibsen

> errorHandlerRef causes NoSuchBeanException on uninstall
> -------------------------------------------------------
>
>                 Key: CAMEL-9164
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9164
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-blueprint, camel-core, jmx
>    Affects Versions: 2.16.0
>            Reporter: Tomohisa Igarashi
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.16.0
>
>         Attachments: camel-error-handler-not-found-on-uninstall.tgz
>
>
> Specifying an errorHandlerRef on a route causes following WARN on uninstall
> {code}
> 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]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message