camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Ohr <>
Subject Re: HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException
Date Mon, 28 Jan 2013 08:17:10 GMT
Hi Stan,

try this ((I assume that hl7lp, hl7Port and minaLogger are properly
set somewhere):

from("mina:tcp://" + hl7Ip + ":" + hl7Port +
"?sync=true&codec=#hl7codec&minaLogger=" + minaLogger)

Registering the codec in Camel is not enough; you also need to add it
as parameter to the endpoint URI.
If you then still have problems, enable DEBUG logging for


2013/1/25 StanZ <>:
> We're working in asynchronous mode where they send all of the messages and I
> send the response back as each one is processed using ActveMQ for JMS
> queuing. It worked fine in my own testing but is failing here.
> What I don't understand is the length of the message: 189616968 bytes
> The hex for the message in the log is for one ADT message with only 6
> segments. It's pretty small so I'm not sure why or how the buffer length was
> reached?
> If the sender sends async a continous stream with each message sparated by
> the MLLP special characters, would the HL7MLLPCODEC cut off each one and
> process separately? It may not be doing that. But then again the log HEX
> only contains one HL7 message with starting and ending characters.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message