You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/01/16 08:35:59 UTC

[jira] Resolved: (CAMEL-1261) camel-spring - method call language can not be used with split

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

Claus Ibsen resolved CAMEL-1261.
--------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 1.5.1)

False alarm. Have created a new ticket with the rename of the expression to language. And avoiding it being a tns:any type.

> camel-spring - method call language can not be used with split
> --------------------------------------------------------------
>
>                 Key: CAMEL-1261
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1261
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-spring
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Using a method call for the split expression is not possible in Spring DSL. It wants to resolve the language.
> As we dont have all the expression builder helper in Spring XML its a bit harder to do routing. But I want to use a bean for the splitting. End users should always have the true power of java, regardless.
> {code}
>             <split>
>                 <expression>
>                     <method bean="echoService" method="splitWords"/>
>                 </expression>
>                 <to uri="bean:echoService?method=hello"/>
>                 <to uri="stream:out"/>
>             </split>
> {code}
> And gives this exception:
> {code}
> 2009-01-15 14:15:18,831 [ing.Main.main()] ERROR MainSupport                    - Failed: org.apache.camel.NoSuchLanguageException: No language could be found for: null
> org.apache.camel.NoSuchLanguageException: No language could be found for: null
>         at org.apache.camel.impl.DefaultLanguageResolver.noSpecificLanguageFound(DefaultLanguageResolver.java:72)
>         at org.apache.camel.impl.DefaultLanguageResolver.resolveLanguage(DefaultLanguageResolver.java:52)
>         at org.apache.camel.impl.DefaultCamelContext.resolveLanguage(DefaultCamelContext.java:430)
>         at org.apache.camel.model.language.ExpressionType.createExpression(ExpressionType.java:158)
>         at org.apache.camel.model.SplitterType.createProcessor(SplitterType.java:86)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.