Hi Have you created a NettyComponent by yourself? If so then it must be started before creating an endpoint.
On Wed, Mar 7, 2012 at 10:35 PM, sambardar <sanjay_ambar...@yahoo.com> wrote: > First time Camel User and trying to use Netty Component. I was running some > of the sample code from Netty test in my own classes and got an exception > from this statement. I am looking at it to figure out the problem but i do > appreciate any help. > > Poetry response = (Poetry) > producerTemplate.requestBody("netty:tcp://localhost:1521?sync=true", > poetry); > > The exception is: > Exception in thread "main" org.apache.camel.ResolveEndpointFailedException: > Failed to resolve endpoint: netty://tcp://localhost:1521?sync=true due to: > timer must be specified > at > org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:450) > at > org.apache.camel.impl.DefaultProducerTemplate.resolveMandatoryEndpoint(DefaultProducerTemplate.java:424) > at > org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:135) > at > org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:284) > at > com.xih.mediation.SyncTest.testTCPObjectInOutWithNettyConsumer(SyncTest.java:71) > at com.xih.mediation.SyncTest.main(SyncTest.java:101) > Caused by: java.lang.IllegalArgumentException: timer must be specified > at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:280) > at > org.apache.camel.component.netty.NettyEndpoint.doStart(NettyEndpoint.java:83) > at > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) > at > org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1675) > at > org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:910) > at > org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:446) > ... 5 more > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Apache-Camel-Netty-tp5545678p5545678.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/