You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have a consumer endpoint with query parameters, the expression extractor fails with an 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}");
The text was updated successfully, but these errors were encountered:
## Motivation
When we have a consumer endpoint with query parameters, the expression extractor fails with an NPE.
## Modifications:
* Sets the component to the endpoint to avoid NPE
* Makes the endpoint lenient to prevent any failures on properties
Bug description
When we have a consumer endpoint with query parameters, the expression extractor fails with an NPE of type:
With a route of type:
The text was updated successfully, but these errors were encountered: