org.apache.camel.model.ThrottleDefinition无法强制转换为org.apache.camel.model.RouteDefinition

时间:2014-02-19 05:28:39

标签: grails apache-camel throttling

我正在尝试设置动态路线,https://github.com/vaneyck/testingCamel 但是,如果我在其他路线中包含路线,似乎我无法使用Java流利的构建器语法为路径添加限制。

如果我将限制代码添加到grails-app / routes中的路由,则代码运行良好,但这不符合我在代码中使用的设置。

| Error 2014-02-19 08:01:33,743 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: org.apache.camel.model.ThrottleDefinition cannot be cast to org.apache.camel.model.RouteDefinition
Message: org.apache.camel.model.ThrottleDefinition cannot be cast to org.apache.camel.model.RouteDefinition
   Line | Method
->> 638 | addRouteDefinitions              in org.apache.camel.impl.DefaultCamelContext
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    13 | doCall                           in BootStrap$_closure1
|   300 | evaluateEnvironmentSpecificBlock in grails.util.Environment
|   293 | executeForEnvironment            in     ''
|   269 | executeForCurrentEnvironment . . in     ''
|   303 | innerRun                         in java.util.concurrent.FutureTask$Sync
|   138 | run . . . . . . . . . . . . . .  in java.util.concurrent.FutureTask
|   895 | runTask                          in java.util.concurrent.ThreadPoolExecutor$Worker
|   918 | run . . . . . . . . . . . . . .  in     ''
^   662 | run                              in java.lang.Thread

0 个答案:

没有答案