使用带有Apache骆驼的计时器组件和周期查询参数会导致错误:错误绑定属性(周期= 10),名称:bean上的周期:

发布于 2025-02-09 12:17:31 字数 952 浏览 1 评论 0 原文

我正在使用Apache Camel版本3.17.0。

我试图每10毫秒通过使用该方法来设想bean。当我将周期= 10添加到URI时,

from("timer://firsttimer?period=10&exchangePattern=InOnly&repeatCount=100")
            .bean(SecondBean.class, "pubMessage");

我会收到以下错误消息:

org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[timer://firsttimer?period=10&exchangePatt... because of Failed to resolve endpoint: timer://firsttimer?exchangePattern=InOnly&period=10&repeatCount=100 due to: Error binding property (period=10) with name: period on bean: timer://firsttimer?exchangePattern=InOnly&period=10&repeatCount=100 with value: 10

当我从URI中删除周期= 10 时,一切都会膨胀。我应该能够根据apache骆驼

此行为至少延伸至3.12.0。

I am using Apache Camel version 3.17.0.

I am trying to envoke a bean via the method pubMessage every 10ms. When I add period=10 to the URI,

from("timer://firsttimer?period=10&exchangePattern=InOnly&repeatCount=100")
            .bean(SecondBean.class, "pubMessage");

I get the following error message:

org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[timer://firsttimer?period=10&exchangePatt... because of Failed to resolve endpoint: timer://firsttimer?exchangePattern=InOnly&period=10&repeatCount=100 due to: Error binding property (period=10) with name: period on bean: timer://firsttimer?exchangePattern=InOnly&period=10&repeatCount=100 with value: 10

When I remove period=10 from the URI, everything works swell. I should be able to put a period parameter per the Apache Camel dox

This behavior extends back to at least 3.12.0.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文