You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2009/11/10 15:01:41 UTC

NoTypeConversionAvailableException - Camel 2.1-SNASPHOT & Camel QuickFix

I have this error generated using the last snapshot of Camel core/spring

CaughtExceptionType:org.apache.camel.NoTypeConversionAvailableException,
CaughtExceptionMessage:No type converter available to convert from
type: quickfix.Message to the required type: java.util.List
	at org.apache.camel.impl.converter.DefaultTypeConverter.mandatoryConvertTo(DefaultTypeConverter.java:124)
	at org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:101)
	at org.apache.camel.builder.ExpressionBuilder$19.evaluate(ExpressionBuilder.java:454)
	at org.apache.camel.impl.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)
	at org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:227)
	at org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:101)
	at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:166)
	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:109)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:144)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:201)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
	at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:63)

This is not the case with a camel-core release of a few weeks ago.

I think that something must be changed in camel quickfix component but
help is welcome to address this issue.

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard

Re: NoTypeConversionAvailableException - Camel 2.1-SNASPHOT & Camel QuickFix

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I guess the problem is that you use bean parameter binding and that
you use a List type in your bean.
And that the quickfix message cannot be coverted to a java.util.List.

Otherwise create an small unit test in camel-quickfix that
demonstrates this and mark it with @Ignore.
Then I can take a look later.


On Tue, Nov 10, 2009 at 3:01 PM, Charles Moulliard <cm...@gmail.com> wrote:
> I have this error generated using the last snapshot of Camel core/spring
>
> CaughtExceptionType:org.apache.camel.NoTypeConversionAvailableException,
> CaughtExceptionMessage:No type converter available to convert from
> type: quickfix.Message to the required type: java.util.List
>        at org.apache.camel.impl.converter.DefaultTypeConverter.mandatoryConvertTo(DefaultTypeConverter.java:124)
>        at org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:101)
>        at org.apache.camel.builder.ExpressionBuilder$19.evaluate(ExpressionBuilder.java:454)
>        at org.apache.camel.impl.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)
>        at org.apache.camel.component.bean.MethodInfo$2.evaluate(MethodInfo.java:227)
>        at org.apache.camel.component.bean.MethodInfo.createMethodInvocation(MethodInfo.java:101)
>        at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:166)
>        at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:109)
>        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>        at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
>        at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
>        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:144)
>        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>        at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:201)
>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
>        at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:63)
>
> This is not the case with a camel-core release of a few weeks ago.
>
> I think that something must be changed in camel quickfix component but
> help is welcome to address this issue.
>
> Regards,
>
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *****************************
> blog : http://cmoulliard.blogspot.com
> twitter : http://twitter.com/cmoulliard
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus