Camel in ServiceMix shutdowns itself, and cannot restart my route
-----------------------------------------------------------------

                 Key: SMXCOMP-895
                 URL: https://issues.apache.org/jira/browse/SMXCOMP-895
             Project: ServiceMix Components
          Issue Type: Bug
          Components: servicemix-camel
    Affects Versions: servicemix-camel-2010.01
         Environment: ServiceMix 4.3.0, Camel 2.6.0
            Reporter: Hendy Irawan


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.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to