ServiceMix Components
  1. ServiceMix Components
  2. SMXCOMP-854

Isn't possible restart a camel route a runtime

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: servicemix-camel-2010.01
    • Fix Version/s: 2013.02
    • Component/s: servicemix-camel
    • Labels:
      None
    • Environment:

      amd64 - linux - smx4 (from trunk revision 1069339).

    • Regression:
      Regression

      Description

      When is called osgi:stop and osgi:start method camel route doesn't start correctly. It is possible restart a camel route only through this sequence:

      • call osgi:stop
      • copy same .sa on smx4/deploy directory
      • wait for deploy and change state to Installed
      • call osgi:start.

      This doesn't happens with components 2010.01.

      Here dump of the exception:

      08:53:34,195 | INFO | l Console Thread | DefaultShutdownStrategy | 68 - org.apache.camel.camel-core - 2.6.0 | Graceful shutdown of 0 routes completed in 0 seconds
      08:53:34,195 | INFO | l Console Thread | DefaultInflightRepository | 68 - org.apache.camel.camel-core - 2.6.0 | Shutting down with no inflight exchanges.
      08:53:34,196 | INFO | l Console Thread | OsgiSpringCamelContext | 68 - org.apache.camel.camel-core - 2.6.0 | Uptime: 0.106 seconds
      08:53:34,196 | INFO | l Console Thread | OsgiSpringCamelContext | 68 - org.apache.camel.camel-core - 2.6.0 | Apache Camel 2.6.0 (CamelContext: test-route) is shutdown in 0.002 seconds
      08:53:34,198 | ERROR | l Console Thread | ServiceAssemblyInstaller | 96 - org.apache.servicemix.jbi.deployer - 1.4.0 | <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-camel</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>Failed to create route route1: Route[[From[jbi:endpoint:http://it.route.test/test/TestRoute... because of Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi</loc-message>
      <stack-trace><![CDATA[org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route[[From[jbi:endpoint:http://it.route.test/test/TestRoute... because of Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)
      at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:701)
      at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1623)
      at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1412)
      at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1321)
      at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
      at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1299)
      at org.apache.servicemix.camel.CamelContextEndpoint.start(CamelContextEndpoint.java:70)
      at org.apache.servicemix.common.DefaultServiceUnit.start(DefaultServiceUnit.java:78)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:155)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.start(ServiceUnitImpl.java:131)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.changeState(ServiceAssemblyImpl.java:298)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.transition(ServiceAssemblyImpl.java:274)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.init(ServiceAssemblyImpl.java:136)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.registerServiceAssembly(Deployer.java:437)
      at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:97)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.onBundleStarted(Deployer.java:334)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java:264)
      at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3715)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1762)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
      at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:29)
      at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:49)
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)
      at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)
      at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)
      at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)
      at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)
      at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
      at org.apache.karaf.shell.console.jline.Console.run(Console.java:170)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:449)
      at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:47)
      at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:175)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
      at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
      at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:737)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:160)
      ... 38 more
      Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create component: jbi
      at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:296)
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:426)
      ... 46 more
      Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
      at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
      at org.apache.camel.spring.spi.SpringInjector.newInstance(SpringInjector.java:39)
      at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:374)
      at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:362)
      at org.apache.camel.impl.osgi.Activator$BundleComponentResolver.resolveComponent(Activator.java:205)
      at org.apache.camel.core.osgi.OsgiComponentResolver.getComponent(OsgiComponentResolver.java:61)
      at org.apache.camel.core.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:52)
      at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:287)
      ... 47 more
      ]]></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      08:53:34,199 | ERROR | l Console Thread | Deployer | 96 - org.apache.servicemix.jbi.deployer - 1.4.0 | Error handling bundle start event
      javax.jbi.JBIException: javax.jbi.management.DeploymentException: <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-camel</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>Failed to create route route1: Route[[From[jbi:endpoint:http://it.route.test/test/TestRoute... because of Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi</loc-message>
      <stack-trace><![CDATA[org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route[[From[jbi:endpoint:http://it.route.test/test/TestRoute... because of Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)
      at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:701)
      at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1623)
      at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1412)
      at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1321)
      at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
      at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1299)
      at org.apache.servicemix.camel.CamelContextEndpoint.start(CamelContextEndpoint.java:70)
      at org.apache.servicemix.common.DefaultServiceUnit.start(DefaultServiceUnit.java:78)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:155)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.start(ServiceUnitImpl.java:131)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.changeState(ServiceAssemblyImpl.java:298)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.transition(ServiceAssemblyImpl.java:274)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.init(ServiceAssemblyImpl.java:136)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.registerServiceAssembly(Deployer.java:437)
      at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:97)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.onBundleStarted(Deployer.java:334)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java:264)
      at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3715)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1762)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
      at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:29)
      at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:49)
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)
      at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)
      at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)
      at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)
      at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)
      at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
      at org.apache.karaf.shell.console.jline.Console.run(Console.java:170)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:449)
      at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:47)
      at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:175)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
      at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
      at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:737)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:160)
      ... 38 more
      Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create component: jbi
      at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:296)
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:426)
      ... 46 more
      Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
      at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
      at org.apache.camel.spring.spi.SpringInjector.newInstance(SpringInjector.java:39)
      at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:374)
      at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:362)
      at org.apache.camel.impl.osgi.Activator$BundleComponentResolver.resolveComponent(Activator.java:205)
      at org.apache.camel.core.osgi.OsgiComponentResolver.getComponent(OsgiComponentResolver.java:61)
      at org.apache.camel.core.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:52)
      at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:287)
      ... 47 more
      ]]></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:101)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      at org.apache.servicemix.jbi.deployer.impl.Deployer.onBundleStarted(Deployer.java:334)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      at org.apache.servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java:264)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)[org.apache.felix.framework-3.0.2.jar:]
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)[org.apache.felix.framework-3.0.2.jar:]
      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)[org.apache.felix.framework-3.0.2.jar:]
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3715)[org.apache.felix.framework-3.0.2.jar:]
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1762)[org.apache.felix.framework-3.0.2.jar:]
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)[org.apache.felix.framework-3.0.2.jar:]
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)[org.apache.felix.framework-3.0.2.jar:]
      at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:29)[8:org.apache.karaf.shell.osgi:2.1.3]
      at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:49)[8:org.apache.karaf.shell.osgi:2.1.3]
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[11:org.apache.karaf.shell.console:2.1.3]
      at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[11:org.apache.karaf.shell.console:2.1.3]
      at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)[11:org.apache.karaf.shell.console:2.1.3]
      at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)[11:org.apache.karaf.shell.console:2.1.3]
      at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)[11:org.apache.karaf.shell.console:2.1.3]
      at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)[11:org.apache.karaf.shell.console:2.1.3]
      at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)[11:org.apache.karaf.shell.console:2.1.3]
      at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)[11:org.apache.karaf.shell.console:2.1.3]
      at org.apache.karaf.shell.console.jline.Console.run(Console.java:170)[11:org.apache.karaf.shell.console:2.1.3]
      at java.lang.Thread.run(Thread.java:662)[:1.6.0_22]
      Caused by: javax.jbi.management.DeploymentException: <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-camel</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>Failed to create route route1: Route[[From[jbi:endpoint:http://it.route.test/test/TestRoute... because of Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi</loc-message>
      <stack-trace><![CDATA[org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route[[From[jbi:endpoint:http://it.route.test/test/TestRoute... because of Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)
      at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:701)
      at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1623)
      at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1412)
      at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1321)
      at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
      at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1299)
      at org.apache.servicemix.camel.CamelContextEndpoint.start(CamelContextEndpoint.java:70)
      at org.apache.servicemix.common.DefaultServiceUnit.start(DefaultServiceUnit.java:78)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:155)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.start(ServiceUnitImpl.java:131)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.changeState(ServiceAssemblyImpl.java:298)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.transition(ServiceAssemblyImpl.java:274)
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.init(ServiceAssemblyImpl.java:136)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.registerServiceAssembly(Deployer.java:437)
      at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:97)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.onBundleStarted(Deployer.java:334)
      at org.apache.servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java:264)
      at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3715)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1762)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
      at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:29)
      at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:49)
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)
      at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)
      at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)
      at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)
      at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)
      at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
      at org.apache.karaf.shell.console.jline.Console.run(Console.java:170)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jbi://endpoint:http://it.route.test/test/TestRouteRoute/TestRouteEndpoint1 due to: Cannot auto create component: jbi
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:449)
      at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:47)
      at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:175)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
      at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
      at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:737)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:160)
      ... 38 more
      Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create component: jbi
      at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:296)
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:426)
      ... 46 more
      Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
      at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
      at org.apache.camel.spring.spi.SpringInjector.newInstance(SpringInjector.java:39)
      at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:374)
      at org.apache.camel.impl.osgi.Activator$BaseResolver.createInstance(Activator.java:362)
      at org.apache.camel.impl.osgi.Activator$BundleComponentResolver.resolveComponent(Activator.java:205)
      at org.apache.camel.core.osgi.OsgiComponentResolver.getComponent(OsgiComponentResolver.java:61)
      at org.apache.camel.core.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:52)
      at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:287)
      ... 47 more
      ]]></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      at org.apache.servicemix.common.BaseServiceUnitManager.failure(BaseServiceUnitManager.java:292)[93:servicemix-common:2011.01.0]
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:162)[93:servicemix-common:2011.01.0]
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.start(ServiceUnitImpl.java:131)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.changeState(ServiceAssemblyImpl.java:298)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.transition(ServiceAssemblyImpl.java:274)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      at org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.init(ServiceAssemblyImpl.java:136)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      at org.apache.servicemix.jbi.deployer.impl.Deployer.registerServiceAssembly(Deployer.java:437)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:97)[96:org.apache.servicemix.jbi.deployer:1.4.0]
      ... 21 more

        Activity

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Ge@@ru
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development