[ 
https://issues.apache.org/jira/browse/CAMEL-14337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-14337.
--------------------------------------
    Resolution: Invalid

> Showing "Exception in thread "main" org.apache.camel.RuntimeCamelException: 
> org.apache.camel.FailedToCreateRouteException"
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-14337
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14337
>             Project: Camel
>          Issue Type: Bug
>         Environment: Technology: Apache Camel
> IDE: STS
> Java version: 8
> Camel version: 2.13.0
>  
>            Reporter: Sachin
>            Priority: Major
>
> While working Apache Camel with MySql database, I am getting below error 
>  
> [                          main] ClassPathXmlApplicationContext INFO  
> Refreshing 
> org.springframework.context.support.ClassPathXmlApplicationContext@5b80350b: 
> startup date [Sat Dec 28 21:51:08 IST 2019]; root of context hierarchy[       
>                    main] ClassPathXmlApplicationContext INFO  Refreshing 
> org.springframework.context.support.ClassPathXmlApplicationContext@5b80350b: 
> startup date [Sat Dec 28 21:51:08 IST 2019]; root of context hierarchy[       
>                    main] XmlBeanDefinitionReader        INFO  Loading XML 
> bean definitions from class path resource [application-context.xml][          
>                 main] DefaultListableBeanFactory     INFO  Pre-instantiating 
> singletons in 
> org.springframework.beans.factory.support.DefaultListableBeanFactory@7b9a4292:
>  defining beans 
> [dataSource,sqlComponent,topicBean,placeholder,template,consumerTemplate,camel-1:beanPostProcessor,camel-1];
>  root of factory hierarchy[                          main] SpringCamelContext 
>             INFO  Apache Camel 2.13.0 (CamelContext: camel-1) is starting[    
>                       main] ManagedManagementStrategy      INFO  JMX is 
> enabled[                          main] DefaultTypeConverter           INFO  
> Loaded 176 type converters[                          main] SpringCamelContext 
>             INFO  Apache Camel 2.13.0 (CamelContext: camel-1) is shutting 
> down[                          main] SpringCamelContext             INFO  
> Apache Camel 2.13.0 (CamelContext: camel-1) uptime 0.733 seconds[             
>              main] SpringCamelContext             INFO  Apache Camel 2.13.0 
> (CamelContext: camel-1) is shutdown in 0.050 secondsException in thread 
> "main" org.apache.camel.RuntimeCamelException: 
> org.apache.camel.FailedToCreateRouteException: Failed to create route 
> processNewTopic-route: 
> Route(processNewTopic-route)[[From[sqlComponent:\{{sql.select... because of 
> Failed to resolve endpoint: 
> sqlComponent://select%20*%20from%20newtopic?+++++++consumer.onConsume=update+newtopic+set+TopicName+%3D+%27Apache+Camel%27+where+TopicId+%3D+%3A%23TopicId
>  due to: Failed to resolve endpoint: 
> sqlComponent://select%20*%20from%20newtopic?+++++++consumer.onConsume=update+newtopic+set+TopicName+%3D+%27Apache+Camel%27+where+TopicId+%3D+%3A%23TopicId
>  due to: There are 1 parameters that couldn't be set on the endpoint. Check 
> the uri if the parameters are spelt correctly and that they are properties of 
> the endpoint. Unknown parameters=[{       consumer.onConsume=update newtopic 
> set TopicName = 'Apache Camel' where TopicId = :#TopicId}] at 
> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363)
>  at 
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122)
>  at 
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:316)
>  at 
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)
>  at 
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
>  at 
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)
>  at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
>  at 
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>  at 
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
>  at camel_data_mysql.App.main(App.java:8)Caused by: 
> org.apache.camel.FailedToCreateRouteException: Failed to create route 
> processNewTopic-route: 
> Route(processNewTopic-route)[[From[sqlComponent:\{{sql.select... because of 
> Failed to resolve endpoint: 
> sqlComponent://select%20*%20from%20newtopic?+++++++consumer.onConsume=update+newtopic+set+TopicName+%3D+%27Apache+Camel%27+where+TopicId+%3D+%3A%23TopicId
>  due to: Failed to resolve endpoint: 
> sqlComponent://select%20*%20from%20newtopic?+++++++consumer.onConsume=update+newtopic+set+TopicName+%3D+%27Apache+Camel%27+where+TopicId+%3D+%3A%23TopicId
>  due to: There are 1 parameters that couldn't be set on the endpoint. Check 
> the uri if the parameters are spelt correctly and that they are properties of 
> the endpoint. Unknown parameters=[{       consumer.onConsume=update newtopic 
> set TopicName = 'Apache Camel' where TopicId = :#TopicId}] at 
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:180) at 
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:778)
>  at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2041)
>  at 
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1791)
>  at 
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1665)
>  at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at 
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1633)
>  at 
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:254)
>  at 
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
>  ... 8 moreCaused by: org.apache.camel.ResolveEndpointFailedException: Failed 
> to resolve endpoint: 
> sqlComponent://select%20*%20from%20newtopic?+++++++consumer.onConsume=update+newtopic+set+TopicName+%3D+%27Apache+Camel%27+where+TopicId+%3D+%3A%23TopicId
>  due to: Failed to resolve endpoint: 
> sqlComponent://select%20*%20from%20newtopic?+++++++consumer.onConsume=update+newtopic+set+TopicName+%3D+%27Apache+Camel%27+where+TopicId+%3D+%3A%23TopicId
>  due to: There are 1 parameters that couldn't be set on the endpoint. Check 
> the uri if the parameters are spelt correctly and that they are properties of 
> the endpoint. Unknown parameters=[\{       consumer.onConsume=update newtopic 
> set TopicName = 'Apache Camel' where TopicId = :#TopicId}] at 
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:532)
>  at 
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71)
>  at 
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:190)
>  at 
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
>  at 
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
>  at 
> org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72) 
> at 
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
>  at 
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:888) at 
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:175) 
> ... 16 moreCaused by: org.apache.camel.ResolveEndpointFailedException: Failed 
> to resolve endpoint: 
> sqlComponent://select%20*%20from%20newtopic?+++++++consumer.onConsume=update+newtopic+set+TopicName+%3D+%27Apache+Camel%27+where+TopicId+%3D+%3A%23TopicId
>  due to: There are 1 parameters that couldn't be set on the endpoint. Check 
> the uri if the parameters are spelt correctly and that they are properties of 
> the endpoint. Unknown parameters=[\{       consumer.onConsume=update newtopic 
> set TopicName = 'Apache Camel' where TopicId = :#TopicId}] at 
> org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:192)
>  at 
> org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:137)
>  at 
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:512)
>  ... 24 more



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to