essobedo opened a new pull request #61: URL: https://github.com/apache/camel-examples/pull/61
## Motivation When we try to run the example `routeloader`, we get a compilation error due to a missing dependency and if we fix it, we finally get an YAML validation error of the following type: ``` ERROR] ************************************* [ERROR] Error occurred while running main from: org.apache.camel.main.Main [ERROR] java.lang.reflect.InvocationTargetException at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.apache.camel.maven.RunMojo$1.run (RunMojo.java:401) at java.lang.Thread.run (Thread.java:829) Caused by: org.apache.camel.dsl.yaml.common.exception.UnsupportedFieldException: Unsupported field (steps) for node: <org.snakeyaml.engine.v2.nodes.MappingNode (tag=tag:yaml.org,2002:map, values={ key=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=from)>; value=<NodeTuple keyNode=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=from)>; valueNode=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=timer:yaml?period=3s)>> }{ key=<org.snakeyaml.engine.v2.nodes.ScalarNode (tag=tag:yaml.org,2002:str, value=steps)>; value=475262681 })> at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties (RouteDefinitionDeserializer.java:84) at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties (RouteDefinitionDeserializer.java:33) at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.construct (YamlDeserializerBase.java:60) at org.apache.camel.dsl.yaml.common.YamlDeserializationContext$2.construct (YamlDeserializationContext.java:231) at org.apache.camel.dsl.yaml.YamlRoutesBuilderLoader$1.configuration (YamlRoutesBuilderLoader.java:192) at org.apache.camel.builder.RouteConfigurationBuilder.addRouteConfigurationsToCamelContext (RouteConfigurationBuilder.java:77) at org.apache.camel.impl.engine.AbstractCamelContext.addRoutesConfigurations (AbstractCamelContext.java:1177) at org.apache.camel.main.RoutesConfigurer.addDiscoveredRoutes (RoutesConfigurer.java:228) at org.apache.camel.main.RoutesConfigurer.configureRoutes (RoutesConfigurer.java:209) at org.apache.camel.main.BaseMainSupport.configureRoutes (BaseMainSupport.java:512) at org.apache.camel.main.BaseMainSupport.postProcessCamelContext (BaseMainSupport.java:557) at org.apache.camel.main.MainSupport.initCamelContext (MainSupport.java:371) at org.apache.camel.main.Main.doInit (Main.java:107) at org.apache.camel.support.service.BaseService.init (BaseService.java:83) at org.apache.camel.main.MainSupport.run (MainSupport.java:65) at org.apache.camel.main.MainCommandLineSupport.run (MainCommandLineSupport.java:174) at org.apache.camel.main.Main.main (Main.java:44) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.apache.camel.maven.RunMojo$1.run (RunMojo.java:401) ``` ## Modifications: * Add the missing dependency (`amel-endpointds`) that is needed at runtime * Move the `steps` into the `from` node and move the `uri` to the dedicated property to fix the YAML validation issues in routeloader/kamelet-main/routes-configuration -- 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-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org