You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "essobedo (via GitHub)" <gi...@apache.org> on 2023/07/06 16:41:51 UTC

[GitHub] [camel-quarkus] essobedo opened a new issue, #5067: Expression extractor fails when there are properties to set

essobedo opened a new issue, #5067:
URL: https://github.com/apache/camel-quarkus/issues/5067

   ### Bug description
   
   When we have a consumer endpoint with query parameters, the expression extractor fails with a NPE of type:
   ```
   org.apache.camel.FailedToCreateRouteException: Failed to create route route5: Route(route5)[From[timer:cTimer_1?period=1&repeatCount=1&del... because of Failed to resolve endpoint: timer://cTimer_1?delay=1&period=1&repeatCount=1 due to: Cannot invoke "org.apache.camel.Component.getEndpointPropertyConfigurer()" because the return value of "org.apache.camel.support.DefaultEndpoint.getComponent()" is null
   	at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:82)
   	at org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
   	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:816)
   	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:685)
   	at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2396)
   	at org.apache.camel.support.service.BaseService.init(BaseService.java:83)
   	at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2062)
   	at org.apache.camel.support.service.BaseService.start(BaseService.java:111)
   	at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2081)
   	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:313)
   	at org.apache.camel.quarkus.support.language.deployment.dm.DryModeMain.doStart(DryModeMain.java:81)
   	at org.apache.camel.support.service.BaseService.start(BaseService.java:119)
   	at org.apache.camel.quarkus.support.language.deployment.LanguageSupportProcessor.extractExpressions(LanguageSupportProcessor.java:62)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
   	at io.quarkus.builder.BuildContext.run(BuildContext.java:282)
   	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
   	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
   	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
   	at java.base/java.lang.Thread.run(Thread.java:833)
   	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
   Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: timer://cTimer_1?delay=1&period=1&repeatCount=1 due to: Cannot invoke "org.apache.camel.Component.getEndpointPropertyConfigurer()" because the return value of "org.apache.camel.support.DefaultEndpoint.getComponent()" is null
   	at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:856)
   	at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:758)
   	at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:60)
   	at org.apache.camel.reifier.AbstractReifier.resolveEndpoint(AbstractReifier.java:195)
   	at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:96)
   	at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:76)
   	... 23 common frames omitted
   Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.camel.Component.getEndpointPropertyConfigurer()" because the return value of "org.apache.camel.support.DefaultEndpoint.getComponent()" is null
   	at org.apache.camel.support.DefaultEndpoint.setProperties(DefaultEndpoint.java:414)
   	at org.apache.camel.support.DefaultEndpoint.configureProperties(DefaultEndpoint.java:394)
   	at org.apache.camel.support.DefaultComponent.setProperties(DefaultComponent.java:418)
   	at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:186)
   	at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:822)
   	... 28 common frames omitted
   ```
   With a route of type:
   ```
   from("timer:myTimer?period=1&repeatCount=1&delay=1")
                  .log("body value is: ${body}");
   ```


-- 
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-quarkus] essobedo closed issue #5067: Expression extractor fails when there are properties to set

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo closed issue #5067: Expression extractor fails when there are properties to set
URL: https://github.com/apache/camel-quarkus/issues/5067


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