ServiceMix Components
  1. ServiceMix Components
  2. SMXCOMP-895

Camel in ServiceMix shutdowns itself, and cannot restart my route

    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:

      ServiceMix 4.3.0, Camel 2.6.0

      Description

      During startup my route works perfectly.

      Bundle status is [Active] [GracePeriod].

      08:57:16,825 | INFO | rint Extender: 1 | BlueprintCamelContext | 68 - org.apache.camel.cam
      el-core - 2.6.0 | Apache Camel 2.6.0 (CamelContext: 212-camel-9) is starting
      08:57:18,114 | INFO | rint Extender: 1 | BlueprintCamelContext | 68 - org.apache.camel.cam
      el-core - 2.6.0 | Route: route3 started and consuming from: Endpoint[rss://http://www.facebook.com/fee
      ds/page.php?consumer.delay=1800000&consumer.useFixedDelay=true&format=atom10&id=52472954880&splitEntri
      es=true]
      08:57:18,114 | INFO | rint Extender: 1 | BlueprintCamelContext | 68 - org.apache.camel.cam
      el-core - 2.6.0 | Total 1 routes, of which 1 is started.
      08:57:18,115 | INFO | rint Extender: 1 | BlueprintCamelContext | 68 - org.apache.camel.cam
      el-core - 2.6.0 | Apache Camel 2.6.0 (CamelContext: 212-camel-9) started in 1.289 seconds

      But several minutes later, Camel automatically shuts itself down, and my route. (I expect it to run continuously)

      The problem is, it is unable to restart my route:

      09:02:16,737 | INFO | rint Extender: 2 | BlueprintCamelContext | 68 - org.apache.camel.camel-core - 2.6.0 | Apache Camel 2.6.0 (CamelContext:212-camel-9) is shutting down
      09:02:16,738 | INFO | rint Extender: 2 | DefaultShutdownStrategy | 68 - org.apache.camel.camel-core - 2.6.0 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
      09:02:16,738 | INFO | 4 - ShutdownTask | DefaultShutdownStrategy | 68 - org.apache.camel.camel-core - 2.6.0 | Route: route3 suspended and shutdown deferred, was consuming from: Endpoint[rss://http://www.facebook.com/feeds/page.php?consumer.delay=1800000&consumer.useFixedDelay=true&format=atom10&id=52472954880&splitEntries=true]
      09:02:16,739 | INFO | 4 - ShutdownTask | DefaultShutdownStrategy | 68 - org.apache.camel.camel-core - 2.6.0 | Route: route3 shutdown complete.
      09:02:16,739 | INFO | rint Extender: 2 | DefaultShutdownStrategy | 68 - org.apache.camel.camel-core - 2.6.0 | Graceful shutdown of 1 routes completed in 0 seconds
      09:02:16,741 | INFO | rint Extender: 2 | DefaultInflightRepository | 68 - org.apache.camel.camel-core - 2.6.0 | Shutting down with no inflight exchanges.
      09:02:16,743 | INFO | rint Extender: 2 | BlueprintCamelContext | 68 - org.apache.camel.camel-core - 2.6.0 | Uptime: 4 minutes
      09:02:16,743 | INFO | rint Extender: 2 | BlueprintCamelContext | 68 - org.apache.camel.camel-core - 2.6.0 | Apache Camel 2.6.0 (CamelContext: 212-camel-9) is shutdown in 0.006 seconds

      09:02:16,743 | ERROR | rint Extender: 2 | BlueprintContainerImpl | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Unable to start blueprint container for bundle marioteguh-to-tumblr_v2.blueprint.xml due to unresolved dependencies [(&(language=js)(objectClass=org.apache.camel.spi.LanguageResolver)), (&(language=simple)(objectClass=org.apache.camel.spi.LanguageResolver)), (&(component=rss)(objectClass=org.apache.camel.spi.ComponentResolver)), (&(component=smtp)(objectClass=org.apache.camel.spi.ComponentResolver))]
      java.util.concurrent.TimeoutException
      at org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:273)[7:org.apache.aries.blueprint:0.2.0.incubating]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.6.0_22]
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.6.0_22]
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.6.0_22]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)[:1.6.0_22]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)[:1.6.0_22]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.6.0_22]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.6.0_22]
      at java.lang.Thread.run(Thread.java:679)[:1.6.0_22]

      Workaround: doing "refresh 212" the bundle can be refresh and working properly again. However, I can't do this every 5 minutes for eternity. Besides, my route is consuming an RSS which means entries will be duplicated.

      Thank you.

        Issue Links

          Activity

          Hide
          Hendy Irawan added a comment -

          Seems to be the root cause.

          Show
          Hendy Irawan added a comment - Seems to be the root cause.
          Hide
          Hendy Irawan added a comment -

          I tried to upgrade to Camel 2.8.0 but blocked by "spring" dependency:

          karaf@root> features:addurl mvn:org.apache.camel.karaf/apache-camel/2.8.0/xml/features

          karaf@root> features:install camel-script 2.8.0
          Error executing command: No feature named 'spring' with version '[3,4)' available

          Show
          Hendy Irawan added a comment - I tried to upgrade to Camel 2.8.0 but blocked by "spring" dependency: karaf@root> features:addurl mvn:org.apache.camel.karaf/apache-camel/2.8.0/xml/features karaf@root> features:install camel-script 2.8.0 Error executing command: No feature named 'spring' with version '[3,4)' available
          Hide
          Hendy Irawan added a comment -

          While I was trying to install 'spring', the strange thing is that it's already available :

          karaf@root> features:list | grep -i spring
          [installed ] [3.0.5.RELEASE ] spring karaf-2.1.3
          [installed ] [1.2.0 ] spring-dm karaf-2.1.3
          [uninstalled] [2.8.0 ] camel-spring camel-2.8.0
          [uninstalled] [2.8.0 ] camel-spring-integration camel-2.8.0
          [uninstalled] [2.8.0 ] camel-spring-javaconfig camel-2.8.0
          [uninstalled] [2.8.0 ] camel-spring-security camel-2.8.0
          [uninstalled] [2.8.0 ] camel-spring-ws camel-2.8.0
          [installed ] [2.6.0 ] camel-spring repo-0
          [uninstalled] [2.6.0 ] camel-spring-integration repo-0
          [uninstalled] [2.6.0 ] camel-spring-javaconfig repo-0
          [uninstalled] [2.6.0 ] camel-spring-security repo-0
          [uninstalled] [5.4.2 ] activemq-spring activemq-5.4.2

          Why is Karaf complaining that 'spring' version [3,4) not available ?

          Show
          Hendy Irawan added a comment - While I was trying to install 'spring', the strange thing is that it's already available : karaf@root> features:list | grep -i spring [installed ] [3.0.5.RELEASE ] spring karaf-2.1.3 [installed ] [1.2.0 ] spring-dm karaf-2.1.3 [uninstalled] [2.8.0 ] camel-spring camel-2.8.0 [uninstalled] [2.8.0 ] camel-spring-integration camel-2.8.0 [uninstalled] [2.8.0 ] camel-spring-javaconfig camel-2.8.0 [uninstalled] [2.8.0 ] camel-spring-security camel-2.8.0 [uninstalled] [2.8.0 ] camel-spring-ws camel-2.8.0 [installed ] [2.6.0 ] camel-spring repo-0 [uninstalled] [2.6.0 ] camel-spring-integration repo-0 [uninstalled] [2.6.0 ] camel-spring-javaconfig repo-0 [uninstalled] [2.6.0 ] camel-spring-security repo-0 [uninstalled] [5.4.2 ] activemq-spring activemq-5.4.2 Why is Karaf complaining that 'spring' version [3,4) not available ?
          Hide
          Willem Jiang added a comment -

          What's your camel route looks like?
          Did you use servicemix-camel component to talk to JBI endpoint?

          In servicemix4 you can deploy the camel route directly instead of wrap the camel context with JBI service assemble.

          Show
          Willem Jiang added a comment - What's your camel route looks like? Did you use servicemix-camel component to talk to JBI endpoint? In servicemix4 you can deploy the camel route directly instead of wrap the camel context with JBI service assemble.
          Hide
          Hendy Irawan added a comment -

          @Willem: it's a single Blueprint XML file.

          This was an older version of the app: http://pastebin.com/E7fZhATS

          It's using 'simple' language, which works fine.

          However after installing camel-script then using 'javaScript' it does not work, hence this bug.

          Show
          Hendy Irawan added a comment - @Willem: it's a single Blueprint XML file. This was an older version of the app: http://pastebin.com/E7fZhATS It's using 'simple' language, which works fine. However after installing camel-script then using 'javaScript' it does not work, hence this bug.

            People

            • Assignee:
              Unassigned
              Reporter:
              Hendy Irawan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development