Hi Ron, By default, camel-netty4 includes default codecs based on java serialization. So, it could be that your payload is NOT Serializable. You would then need to configure codecs matching your case.
You may find below links of interest: https://github.com/apache/camel/blob/master/components/camel-netty4/src/main/docs/netty4-component.adoc#using-multiple-codecs https://github.com/apache/camel/blob/master/components/camel-netty4/src/test/resources/org/apache/camel/component/netty4/multiple-codecs.xml https://github.com/apache/camel/blob/master/components/camel-ganglia/src/test/java/org/apache/camel/component/ganglia/GangliaProtocolV31CamelTest.java#L214-L257 Hope this help, Alex On Fri, Sep 14, 2018 at 12:26 AM Ron Cecchini <[email protected]> wrote: > I'll try a shorter version of my question: > > > Why does this work: > > > .to("mina2:udp://localhost:40000?sync=false") > > ... > > from("mina2:udp://localhost:40000?sync=false") > > > and this doesn't work: > > > .to("netty4:udp://localhost:40000?sync=false") > > ... > > from("netty4:udp://localhost:40000?sync=false") > > > In particular, the netty4:udp *write* fails. > > > Thanks. > > > p.s. I found something about using the 'encoder/decoder' params. But I > don't see anything in the docs or book about it being necessary. Is it > required? All I'm trying to do is write some JSON I got from a Rest call. > >
