You should ask on the camel mailinglist as it seems like camel tries to add the 
handler multiple times

> Am 07.07.2017 um 07:51 schrieb James Kim <[email protected]>:
> 
> as i am a beginner of camel. i wanna get a hint to solve my problem. here is 
> my code
> 
> full source link : https://github.com/kcy0142/camel_netty_test
> 
> @Configuration
> public class ChannelHandlerFactoryByteArrayDecoder implements 
> ChannelHandlerFactory {
>     @Bean(name="vpaByteDecoder")
>     @Qualifier("vpaByteDecoder")
>     public ChannelHandler newChannelHandler() {
>       return (ChannelHandler) new VpaByteDecoder();
>     }
>     public  class VpaByteDecoder extends ByteToMessageDecoder{
> 
>     }
> }
> 
> 
> 
> and my router is
> 
> from("netty4:tcp://localhost:8004?textline=true&sync=true&decoders=#vpaByteDecoder&encoders=#stringEncoder").
> 
> and error is invoked like this
> 
> io.netty.channel.ChannelPipelineException: 
> config.ChannelHandlerFactoryDecoder$VpaByteDecoder is not a @Sharable 
> handler, so can't be added or removed multiple times.
> 
> ByteToMessageDecoder should not sharable. so i implenmented 
> ChannelHandlerFactory
> 
> i dont know the reason.plaease show me the way to understand my problem.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/netty/d93f8149-2ad6-4006-bf58-628d63d3db8f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/5E32FC8C-9261-4106-A1B7-B5532DBE571D%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to