9 Replies Latest reply on Oct 21, 2010 2:57 AM by Claus Ibsen

    Web interface funny

    Julian Cable Newbie

      Hi,

       

        I've been playing with some camel routes in an eclipse/maven environment with a link to the Fuse activemq in the camel context and now I'm trying to run the same code inside activemq.

       

      I've added the path to my classes into activemq.bat and copied the camel-mina and mina-core jars into the lib folder.

       

      I have the following additional bean definitions in camel.xml:

       

         

       

      Now this all works! I can see the messages enqueued in the ActiveMQ web console and my diagnostics get printed in the command window.

       

      But I can't see the route or the endpoints in http://localhost:8161/camel/routes and http://localhost:8161/camel/endpoints and if I try to define the mina endpoint using the web interface I get an error:

       

      HTTP ERROR 500

       

      Problem accessing /camel/endpoints. Reason:

       

          Failed to resolve endpoint: mina://tcp://localhost:12001?amp%3Bsync=false&codec=%23AFCodec due to: Could not find a suitable setter for property: codec as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: org.apache.mina.filter.codec.ProtocolCodecFactory with value #AFCodec

       

      Caused by:

       

      org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: mina://tcp://localhost:12001?amp%3Bsync=false&codec=%23AFCodec due to: Could not find a suitable setter for property: codec as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: org.apache.mina.filter.codec.ProtocolCodecFactory with value #AFCodec

       

      Any ideas ?

       

      Julian