Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
2.17.5, 2.18.1
-
None
-
None
-
Spring Boot 1.3.8-RELEASE, Spring Boot-1.4.3-RELEASE, Windows 10, Java 8 u65
-
Unknown
Description
I am running into an issue when I use the netty4 component with a ProducerTemplate.
Processor bean :
@EndpointInject(uri="netty4:udp://10.18.2.161:6509")
private ProducerTemplate producerTemplate;
When Spring Boot tries to create the bean, I get this error message :
Failed to resolve endpoint: udp://10.18.2.161:6509 due to: No component found with scheme: udp
(Full stacktrace below)
As part of my debugging efforts, I found this curious line :
2017-01-25 13:31:16,905 DEBUG [main] org.apache.camel.spring.SpringCamelContext netty4://udp://10.18.2.161:6509 converted to endpoint: Endpoint[udp://10.18.2.161:6509] by component: org.apache.camel.component.netty4.NettyComponent@5807efad
Full Stacktrace :
2017-01-25 17:16:59,423 ERROR [main] org.springframework.boot.SpringApplication Application startup failed
org.apache.camel.spring.boot.CamelSpringBootInitializationException: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: udp://10.18.2.161:6509 due to: No component found with scheme: udp
at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:124)
at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:41)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)
at com.vistronix.mmai.pcap.Application.main(Application.java:9)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: udp://10.18.2.161:6509 due to: No component found with scheme: udp
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:628)
at org.apache.camel.impl.DefaultProducerTemplate.doStart(DefaultProducerTemplate.java:731)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at org.apache.camel.impl.DeferServiceStartupListener.onCamelContextStarted(DeferServiceStartupListener.java:49)
at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3529)
at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3308)
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3162)
at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:182)
at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2957)
at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2953)
at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2976)
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2953)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2920)
at org.apache.camel.spring.boot.RoutesCollector.maybeStart(RoutesCollector.java:141)
at org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:116)
... 23 common frames omitted