camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Worgan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-6712) using .transform(ack()) from camel-hl7 does not work using the scala dsl and mina
Date Fri, 06 Sep 2013 22:40:52 GMT
Max Worgan created CAMEL-6712:
---------------------------------

             Summary: 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-hl7, camel-mina2, camel-scala
    Affects Versions: 2.11.0, 2.12.0
         Environment: linux 3.10, jboss-fuse-6.1.0
            Reporter: Max Worgan


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message