camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vincentytran <>
Subject must be of type org.apache.mina.filter.codec.ProtocolCodecFactory error
Date Mon, 03 Aug 2009 16:12:44 GMT

Hello. I need some help with using camel-hl7. I'm new to servicemix and I've
been doing my best following all the tutorials and samples.

The error I am getting is:

Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException:
Bean named 'hl7codec' must be of type
[org.apache.mina.filter.codec.ProtocolCodecFactory], but was actually of
type [org.apache.camel.component.hl7.HL7MLLPCodec]

My camel-context.xml file contains...
<camelContext id="camel"
<bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"> 
        <property name="charset" value="iso-8859-1"/> 

And I have a class that extends RouteBuilder in the ca.blah package...

        .process(new Processor() { 
            public void process(Exchange exchange) throws Exception { 
                // use plain String as message format 
                String body = exchange.getIn().getBody(String.class); 
                // return the response as plain string 
                exchange.getOut().setBody("Bye World"); 
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message