org.apache.camel.FailedToCreateRouteException: Failed to create route route15 at: >>> FlowEndProcessor[[]] <<< in route: Route(route15)[[From[jms:queue:delivery-file]] -> [To[file:w... because of context argument is not a SpringCamelContext

Google Groups | Alexander Kley | 2 years ago
  1. 0

    Problem during route creation via BlueprintCamelContext

    Google Groups | 2 years ago | Alexander Kley
    org.apache.camel.FailedToCreateRouteException: Failed to create route route15 at: >>> FlowEndProcessor[[]] <<< in route: Route(route15)[[From[jms:queue:delivery-file]] -> [To[file:w... because of context argument is not a SpringCamelContext
  2. 0
    samebug tip
    This is mostly caused by an async call trying to load something to an object that's already been destroyed. Use a pauseRequests() on the onDestroy method.
    via GitHub by rsaphala
  3. 0
    samebug tip
    You might send a large amount of data in the request URL. Consider sending it in the request body.
    via Coderanch by Partheban Udayakumar
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    I was missing a partitioning column because I did not specify the "basePath" option on read

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      context argument is not a SpringCamelContext

      at org.openehealth.ipf.platform.camel.core.util.Contexts.getApplicationContext()
    2. org.openehealth.ipf
      FlowProcessorDefinition.createProcessor
      1. org.openehealth.ipf.platform.camel.core.util.Contexts.getApplicationContext(Contexts.java:57)
      2. org.openehealth.ipf.platform.camel.core.util.Contexts.beanOrNull(Contexts.java:38)
      3. org.openehealth.ipf.platform.camel.flow.model.FlowEndProcessorDefinition.createFlowEndProcessor(FlowEndProcessorDefinition.java:47)
      4. org.openehealth.ipf.platform.camel.flow.model.FlowEndProcessorDefinition.doCreateProcessor(FlowEndProcessorDefinition.java:42)
      5. org.openehealth.ipf.platform.camel.flow.model.FlowProcessorDefinition.createProcessor(FlowProcessorDefinition.java:116)
      5 frames
    3. Camel :: Core
      DefaultCamelContext.start
      1. org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:500)
      2. org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:213)
      3. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:909)
      4. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
      5. org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:770)
      6. org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1914)
      7. org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1670)
      8. org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1544)
      9. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      10. org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1512)
      10 frames
    4. Camel :: Blueprint
      BlueprintCamelContext.serviceChanged
      1. org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:177)
      2. org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:209)
      3. org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:147)
      3 frames
    5. Apache Felix Framework
      BundleContextImpl.registerService
      1. org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      3. org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      4. org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
      5. org.apache.felix.framework.Felix.registerService(Felix.java:3423)
      6. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      6 frames
    6. Apache Aries Blueprint Core
      BlueprintExtender.modifiedBundle
      1. org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:452)
      2. org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:387)
      3. org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)
      4. org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:276)
      5. org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:245)
      6. org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:235)
      6 frames
    7. Apache Aries Util
      BundleHookBundleTracker$BundleEventHook.event
      1. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
      2. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
      3. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
      4. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
      5. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
      5 frames
    8. Apache Felix Framework
      BundleImpl.update
      1. org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103)
      2. org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:695)
      3. org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:483)
      4. org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
      5. org.apache.felix.framework.Felix.startBundle(Felix.java:2092)
      6. org.apache.felix.framework.Felix.updateBundle(Felix.java:2404)
      7. org.apache.felix.framework.BundleImpl.update(BundleImpl.java:973)
      8. org.apache.felix.framework.BundleImpl.update(BundleImpl.java:960)
      8 frames
    9. org.apache.karaf
      BundleCommandWithConfirmation.doExecute
      1. org.apache.karaf.bundle.command.Update.doExecute(Update.java:42)
      2. org.apache.karaf.bundle.command.BundleCommand.doExecute(BundleCommand.java:49)
      3. org.apache.karaf.bundle.command.BundleCommandWithConfirmation.doExecute(BundleCommandWithConfirmation.java:34)
      3 frames
    10. Apache Karaf :: Shell :: Console
      AbstractCommand.execute
      1. org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
      2. org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
      3. org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
      3 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_25]
      3 frames
    12. Apache Aries Proxy Service
      ProxyHandler.invoke
      1. org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
      2. org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
      2 frames
    13. Apache Karaf :: Shell :: Console
      $BlueprintCommand15737411.execute
      1. org.apache.karaf.shell.console.commands.$BlueprintCommand15737411.execute(Unknown Source)[37:org.apache.karaf.shell.console:3.0.1]
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_25]
      3. java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_25]
      3 frames
    15. Apache Aries Proxy Service
      ProxyHandler.invoke
      1. org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
      2. org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
      2 frames
    16. Apache Karaf :: Shell :: Console
      $BlueprintCommand15737411.execute
      1. org.apache.karaf.shell.console.commands.$BlueprintCommand15737411.execute(Unknown Source)[37:org.apache.karaf.shell.console:3.0.1]
      1 frame
    17. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[37:org.apache.karaf.shell.console:3.0.1]
      2. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[37:org.apache.karaf.shell.console:3.0.1]
      3. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[37:org.apache.karaf.shell.console:3.0.1]
      4. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[37:org.apache.karaf.shell.console:3.0.1]
      5. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[37:org.apache.karaf.shell.console:3.0.1]
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[37:org.apache.karaf.shell.console:3.0.1]
      7. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
      7 frames
    18. Apache Karaf :: Shell :: Console
      ConsoleImpl.run
      1. org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:521)
      2. org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:212)
      2 frames
    19. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
      1 frame
    20. Apache Karaf :: Shell :: Console
      ConsoleFactoryService$3$1.run
      1. org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:126)[37:org.apache.karaf.shell.console:3.0.1]
      2. org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:117)
      2 frames
    21. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)[:1.7.0_25]
      1 frame
    22. Karaf
      JaasHelper.doAs
      1. org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[38:org.apache.karaf.jaas.modules:3.0.1]
      1 frame
    23. Apache Karaf :: Shell :: Console
      ConsoleFactoryService$3.run
      1. org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:115)[37:org.apache.karaf.shell.console:3.0.1]
      1 frame