[ 
https://issues.apache.org/jira/browse/CAMEL-6712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-6712.
--------------------------------
    Resolution: Invalid
      Assignee: Claus Ibsen

> 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
>            Assignee: Claus Ibsen
>            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.3.4#6332)

Reply via email to