I am not sure if its spring related, I used netty with tcp with the java
dsl on 2.17 and that works. You could log an issue as it is perhaps a bug?

On Thu, Jan 26, 2017 at 3:32 PM, Giordano, Michael [via Camel] <
ml-node+s465427n5793087...@n5.nabble.com> wrote:

> Yes except the error message changes to
>
> Failed to resolve endpoint: tcp://10.18.2.161:6509 due to: No component
> found with scheme: tcp
>
> -----Original Message-----
> From: souciance [mailto:[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5793087&i=0>]
> Sent: Thursday, January 26, 2017 6:24 AM
> To: [hidden email] <http:///user/SendEmail.jtp?type=node&node=5793087&i=1>
> Subject: Re: ProducerTemplate using netty4 component
>
> Hmm strange, do you get the same error if you switch from udp to tcp just
> for the sake of it?
>
> On Wed, Jan 25, 2017 at 11:20 PM, Giordano, Michael [via Camel] <
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5793087&i=2>>
> wrote:
>
> > 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)
> >
> > Error reproduced with
> > Spring Boot versions : 1.3.8-RELEASE, 1.4.3-RELEASE Camel versions :
> > 2.17.5, 2.18.1
> >
> > 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
> >
> > Has anyone else encountered this issue? Am I doing something wrong?
> >
> > Thanks,
> > Mike G.
> >
> > 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(EmbeddedWebApplicationCont
> > ext.java:144)
> >
> >         at org.springframework.context.support.AbstractApplicationContext.
>
> > refresh(AbstractApplicationContext.java:545)
> >         at org.springframework.boot.context.embedded.
> > EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.ja
> > va:122)
> >
> >         at
> > org.springframework.boot.SpringApplication.refresh(SpringApplication.j
> > ava:761)
> >
> >         at
> > org.springframework.boot.SpringApplication.refreshContext(SpringApplic
> > ation.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(DefaultCamelCont
> > ext.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(DefaultCamelCon
> > text.java:3162)
> >
> >         at org.apache.camel.impl.DefaultCamelContext.access$
> > 000(DefaultCamelContext.java:182)
> >         at
> > org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.j
> > ava:2957)
> >
> >         at
> > org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.j
> > ava: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.ja
> > va:2920)
> >
> >         at
> > org.apache.camel.spring.boot.RoutesCollector.maybeStart(RoutesCollecto
> > r.java:141)
> >
> >         at org.apache.camel.spring.boot.RoutesCollector.
> > onApplicationEvent(RoutesCollector.java:116)
> >         ... 23 common frames omitted
> >
> > This communication, along with its attachments, is considered
> > confidential and proprietary to Vistronix.  It is intended only for
> > the use of the
> > person(s) named above.  Note that unauthorized disclosure or
> > distribution of information not generally known to the public is
> strictly prohibited.
> > If you are not the intended recipient, please notify the sender
> > immediately.
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the
> > discussion
> > below:
> > http://camel.465427.n5.nabble.com/ProducerTemplate-using-
> > netty4-component-tp5793064.html
> > To start a new topic under Camel - Users, email
> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=5793087&i=3>
> > To unsubscribe from Camel - Users, click here
> > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsu
> > bscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpb
> > C5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> > .
> > NAML
> > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macr
> > o_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namesp
> > aces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.vi
> > ew.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%
> > 3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%2
> > 1nabble%3Aemail.naml>
> >
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/ProducerTemplate-using-netty4-component-tp5793064p5793073.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/ProducerTemplate-using-netty4-component-
> tp5793064p5793087.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/ProducerTemplate-using-netty4-component-tp5793064p5793088.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to