You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Hendy Irawan (JIRA)" <ji...@apache.org> on 2011/07/28 04:29:09 UTC

[jira] [Created] (SMXCOMP-895) Camel in ServiceMix shutdowns itself, and cannot restart my route

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

        

[jira] [Commented] (SMXCOMP-895) Camel in ServiceMix shutdowns itself, and cannot restart my route

Posted by "Hendy Irawan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMXCOMP-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072150#comment-13072150 ] 

Hendy Irawan commented on SMXCOMP-895:
--------------------------------------

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 ? :-(

> 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

        

[jira] [Commented] (SMXCOMP-895) Camel in ServiceMix shutdowns itself, and cannot restart my route

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMXCOMP-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072665#comment-13072665 ] 

Willem Jiang commented on SMXCOMP-895:
--------------------------------------

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.


> 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

        

[jira] [Commented] (SMXCOMP-895) Camel in ServiceMix shutdowns itself, and cannot restart my route

Posted by "Hendy Irawan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMXCOMP-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072149#comment-13072149 ] 

Hendy Irawan commented on SMXCOMP-895:
--------------------------------------

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



> 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

        

[jira] [Commented] (SMXCOMP-895) Camel in ServiceMix shutdowns itself, and cannot restart my route

Posted by "Hendy Irawan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SMXCOMP-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072667#comment-13072667 ] 

Hendy Irawan commented on SMXCOMP-895:
--------------------------------------

@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.

> 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