You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/12/09 06:23:13 UTC
[GitHub] [camel-karavan] cristph opened a new issue, #553: problem of the method language with filter pattern
cristph opened a new issue, #553:
URL: https://github.com/apache/camel-karavan/issues/553
I'm using camel-karavan to delpoy my camel.yaml integration, code as below:
`
- route:
from:
uri: direct:test11
steps:
- filter:
expression:
method:
ref: testCheck
method: check
steps:
- bean:
ref: testCheck
method: check
beanType: com.test.TestCheck
id: test11
`
and I encountered the following problem:
`
org.apache.camel.FailedToCreateRouteException: Failed to create route test11 at: >>> Filter[bean[ref:testCheck method:check] -> [Bean[ref:testCheck method:check]]] <<< in route: Route(test11)[From[direct:test11] -> [Filter[bean[ref:testCh... because of NullPointerException
at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:241)
at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:75)
at org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:878)
at org.apache.camel.impl.DefaultModel.addRouteDefinitions(DefaultModel.java:206)
at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:367)
at org.apache.camel.builder.RouteBuilder.populateOrUpdateRoutes(RouteBuilder.java:732)
at org.apache.camel.builder.RouteBuilder.updateRoutesToCamelContext(RouteBuilder.java:595)
at org.apache.camel.impl.engine.DefaultRoutesLoader.updateRoutes(DefaultRoutesLoader.java:192)
at com.alibaba.cbf.routes.CbfRoutesConfigurer.reloadRoutes(CbfRoutesConfigurer.java:95)
at com.alibaba.cbf.application.CbfSpringBootApplicationStartListener.reload(CbfSpringBootApplicationStartListener.java:129)
at com.alibaba.cbf.application.CbfSpringBootApplicationStartListener.handle(CbfSpringBootApplicationStartListener.java:105)
at com.alibaba.cbf.application.CbfSpringBootApplicationStartListener.lambda$new$0(CbfSpringBootApplicationStartListener.java:89)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException: null
at org.apache.camel.reifier.language.ExpressionReifier.createPredicate(ExpressionReifier.java:243)
at org.apache.camel.reifier.AbstractReifier.createPredicate(AbstractReifier.java:123)
at org.apache.camel.reifier.ExpressionReifier.createPredicate(ExpressionReifier.java:48)
at org.apache.camel.reifier.FilterReifier.createFilterProcessor(FilterReifier.java:43)
at org.apache.camel.reifier.FilterReifier.createProcessor(FilterReifier.java:33)
at org.apache.camel.reifier.FilterReifier.createProcessor(FilterReifier.java:25)
at org.apache.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:847)
at org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:588)
at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:237)
... 15 common frames omitted
`
It seems like that the method language does not work with the filter pattern,
anyone can help?
much appreciated!
camel-springboot version: 3.18.4
camel-karavan: the latest 3.18.6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #553: problem of the method language with filter pattern
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #553:
URL: https://github.com/apache/camel-karavan/issues/553#issuecomment-1344345364
You can configure karavan to what Camel version it should use, so when 3.20.0 is out you can use that, or wait for 3.18.5 etc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #553: problem of the method language with filter pattern
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #553:
URL: https://github.com/apache/camel-karavan/issues/553#issuecomment-1344330602
Yeah it seems like a bug in camel-core / yaml-dsl. I created a ticket
https://issues.apache.org/jira/browse/CAMEL-18807
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] cristph commented on issue #553: problem of the method language with filter pattern
Posted by GitBox <gi...@apache.org>.
cristph commented on issue #553:
URL: https://github.com/apache/camel-karavan/issues/553#issuecomment-1344365230
> You can configure karavan to what Camel version it should use, so when 3.20.0 is out you can use that, or wait for 3.18.5 etc.
ohhhhhhhh, thanks so much!
this is why I enjoy Camel !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #553: problem of the method language with filter pattern
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #553:
URL: https://github.com/apache/camel-karavan/issues/553#issuecomment-1344341704
Okay the bug is fixed and will be in next releases 3.18.5 and 3.20.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] cristph commented on issue #553: problem of the method language with filter pattern
Posted by GitBox <gi...@apache.org>.
cristph commented on issue #553:
URL: https://github.com/apache/camel-karavan/issues/553#issuecomment-1344371829
> And please if you find other issues then you are very welcome to report here
Yeah, I‘m always keeping following the development of Camel, that's a nice tour!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #553: problem of the method language with filter pattern
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #553:
URL: https://github.com/apache/camel-karavan/issues/553#issuecomment-1344346446
And please if you find other issues then you are very welcome to report here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus closed issue #553: problem of the method language with filter pattern
Posted by GitBox <gi...@apache.org>.
davsclaus closed issue #553: problem of the method language with filter pattern
URL: https://github.com/apache/camel-karavan/issues/553
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org