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

Gert Vanthienen commented on CAMEL-973:
---------------------------------------

Part of the problem is that our current StreamCacheInterceptor is caching 
Source types that do not need any caching.
An example: a StringSource can be read multiple times without any problem, but 
because it extends StreamSource it is still being 'streamcached'

http://svn.eu.apache.org/viewvc?view=rev&revision=703990 should fix this end of 
the problem.

> TypeConverter Exception is thrown in the latest build of camel
> --------------------------------------------------------------
>
>                 Key: CAMEL-973
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-973
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Edell Nolan
>
> I have upgraded to the latest of Camel and when I attempt to use the content 
> based router pattern - its now throwing an error.
> The contents of the Message passed is a StringSource object and from 
> debugging camel - the BodyType is a StringSource but it is attempting to 
> convert from a StreamCache to a StringSource. 
> I will try and put a testcase together but if anyone has any ideas of its 
> cause in the meantime ?
> The error it throws it below.
> thanks, Edell.
> No type converter available to convert from type: class 
> org.apache.servicemix.camel.JbiMessage to the required type: 
> org.w3c.dom.Document with value JbiMessage: [EMAIL PROTECTED]
> org.apache.camel.NoTypeConversionAvailableException: No type converter 
> available to convert from type: class org.apache.servicemix.camel.JbiMessage 
> to the required type: org.w3c.dom.Document with value JbiMessage: [EMAIL 
> PROTECTED]
>       at 
> org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:117)
>       at 
> org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:65)
>       at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:69)
>       at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:51)
>       at 
> org.apache.camel.builder.xml.XPathBuilder.getDocument(XPathBuilder.java:528)
>       at 
> org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:420)
>       at 
> org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:98)
>       at 
> org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:63)
>       at 
> org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:47)
>       at 
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:75)
>       at 
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:174)
>       at 
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:96)
>       at 
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:63)
>       at 
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:47)
>       at 
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
>       at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
>       at 
> org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:115)
>       at 
> org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:73)
>       at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
>       at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
>       at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:456)
>       at 
> org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:341)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>       at java.lang.Thread.run(Thread.java:595)

-- 
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