[ 
https://issues.apache.org/activemq/browse/CAMEL-1261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48745#action_48745
 ] 

Claus Ibsen commented on CAMEL-1261:
------------------------------------

I still think it should be removed as its a xs:any type and its confusing what 
it can be used for.

> 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: 1.5.1, 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.

Reply via email to