You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/10/11 03:55:52 UTC
[jira] Issue Comment Edited: (CAMEL-973) TypeConverter Exception is
thrown in the latest build of camel
[ https://issues.apache.org/activemq/browse/CAMEL-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46359#action_46359 ]
njiang edited comment on CAMEL-973 at 10/10/08 6:54 PM:
--------------------------------------------------------------
I don't know if it relates to CAMEL-520 and CAMEL-858.
>From the stack trace, it looks like camel can't find a JbiMessage to Document converting method.
was (Author: njiang):
I don't know if it relates to CAMEL-520[1] and CAMEL-858[2].
[1]http://issues.apache.org/activemq/browse/CAMEL-520
[2]http://issues.apache.org/activemq/browse/CAMEL-858
>From the stack trace, it looks like camel can't find a JbiMessage to Document converting method.
> 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: org.apache.servicemix.jbi.runtime.impl.NormalizedMessageImpl@1d03b5b
> 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: org.apache.servicemix.jbi.runtime.impl.NormalizedMessageImpl@1d03b5b
> 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.