Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
2.11.0, 2.12.0
-
None
-
linux 3.10, jboss-fuse-6.1.0
-
Unknown
Description
a Route defined in java like so:
from("mina2:tcp://localhost:8888?sync=true&codec=#hl7codec").transform(ack());
where hl7codec is defined in spring as
<bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"/>
returns HL7 acks as expected. However using the scala dsl:
"mina2:tcp://localhost:8888?sync=true&codec=#hl7codec" ==> { transform(ack()) }
throws an exception:
org.apache.camel.CamelException: org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.IllegalArgumentException: The message to encode is not a supported type: org.apache.camel.component.hl7.AckExpression