1 Reply Latest reply on Mar 14, 2012 6:16 PM by Eyl Francois

    Mina route deployment issue with custom codec

    Eyl Francois Newbie

      Hi guys,


      I'm trying to use apache mina with camel using a custom codec (on apache-servicemix-4.4.1-fuse-02-05). I'm facing to a deployment issue, here is the error message (full stacktrace in attachment) :


      Caused by: java.lang.IllegalArgumentException: Could not find a suitable setter for property: codec as there isn't a setter method with same type: test.net.mina.codec.MyMinaCodec nor type conversion possible: No type converter available to convert from type: test.net.mina.codec.MyMinaCodec to the required type: org.apache.mina.filter.codec.ProtocolCodecFactory with value test.net.mina.codec.MyMinaCodec@8073d3


      Here is my blueprint route :




      Here is my Codec implementation :


      public class MyMinaCodec implements ProtocolCodecFactory {


           public ProtocolDecoder getDecoder(IoSession session) throws Exception {

                return new MyMinaDecoder();



           public ProtocolEncoder getEncoder(IoSession session) throws Exception {

                return new MyMinaEncoder();




      What disturbe me is that I correctly implemented the codec, as well as I declared the bean into the registry... But it looks like my implementation does not match???


      Any idea of this could be? Thanks for your help!