You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/11/12 13:13:17 UTC
[jira] [Updated] (CAMEL-6712) using .transform(ack()) from
camel-hl7 does not work using the scala dsl and mina
[ https://issues.apache.org/jira/browse/CAMEL-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-6712:
-------------------------------
Component/s: (was: camel-mina2)
(was: camel-hl7)
Fix Version/s: Future
> using .transform(ack()) from camel-hl7 does not work using the scala dsl and mina
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-6712
> URL: https://issues.apache.org/jira/browse/CAMEL-6712
> Project: Camel
> Issue Type: Bug
> Components: camel-scala
> Affects Versions: 2.11.0, 2.12.0
> Environment: linux 3.10, jboss-fuse-6.1.0
> Reporter: Max Worgan
> Priority: Minor
> Fix For: Future
>
>
> a Route defined in java like so:
> {code}from("mina2:tcp://localhost:8888?sync=true&codec=#hl7codec").transform(ack());
> {code}
> where hl7codec is defined in spring as
> {code} <bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"/>{code}
> returns HL7 acks as expected. However using the scala dsl:
> {code} "mina2:tcp://localhost:8888?sync=true&codec=#hl7codec" ==> { transform(ack()) } {code}
> 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}}
--
This message was sent by Atlassian JIRA
(v6.1#6144)