You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pchakinala <pr...@planetsoft.com> on 2011/08/04 11:07:26 UTC
RE: No type converter available to convert from
type:javax.xml.transform.stream.StreamSource to the required
type:org.apache.camel.StreamCache with 124 KB File Size
Hi,
Thanks for the response. Is there any work around solution? We were completed major work with servicemix 4.2 version.
Regards,
Praveen Chakinala
From: Claus Ibsen-2 [via ServiceMix] [mailto:ml-node+4665652-1276885824-113647@n5.nabble.com]
Sent: Thursday, August 04, 2011 2:17 PM
To: pchakinala
Subject: Re: No type converter available to convert from type:javax.xml.transform.stream.StreamSource to the required type:org.apache.camel.StreamCache with 124 KB File Size
Hi
Is it possible to upgraded to a newer SMX release. As we have fixed
some issues with how Camel is bootstrapped in SMX to ensure it is
started properly and Camel can load all of its type converters etc.
On Thu, Aug 4, 2011 at 10:14 AM, pchakinala
<[hidden email]> wrote:
> Hi,
> I am working with Servicemix 4.2 OSGI bundle and my use case flow is like
> below.
>
> http client ---> servicemix http(mep in-out) --->camel ---> xslt su(mep
> in-out) --->htpp-su(mep in-out)---> out side service
>
> The same flow is working fine when the file size is less.Actual response
> size is 124 KB.
>
> <camel:camelContext xmlns="http://camel.apache.org/schema/spring"
> streamCache="true">
>
> <camel:route>
> <camel:from
> uri="jbi:endpoint:http://planetsoft.com/picf2/MIB401Req/endpoint"/>
>
> <camel:convertBodyTo type="java.lang.String"></camel:convertBodyTo>
> <bean ref="converterUtil" method="convert"/>
>
> <camel:to
> uri="jbi:endpoint:http://planetsoft.com/picf2/MIB401ReqProxy/endpoint?mep=in-out"
> />
> <camel:convertBodyTo type="javax.xml.transform.stream.StreamSource"/>
> <camel:convertBodyTo type="java.lang.String"></camel:convertBodyTo>
>
> <camel:convertBodyTo type="java.lang.String"></camel:convertBodyTo>
>
> </camel:route>
>
> </camel:camelContext>
>
> streamCache="true" attribute has added to camel context.
> found below exception with 124 KB Size:
>
> Exchange[Message: [Body is instance of java.xml.transform.StreamSource]].
> Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type
> converter available to convert from type:
> javax.xml.transform.stream.StreamSource to the required type:
> java.lang.String with value javax.xml.transform.stream.StreamSource@fd01b1]
> at
> org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:102)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:58)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:53)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.Pipeline.access$100(Pipeline.java:43)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.Pipeline$1.done(Pipeline.java:143)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.DefaultChannel$1.done(DefaultChannel.java:275)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.processor.RedeliveryErrorHandler$1.done(RedeliveryErrorHandler.java:311)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:78)[68:org.apache.camel.camel-core:2.6.0]
> at
> org.apache.servicemix.camel.CamelConsumerEndpoint$1.call(CamelConsumerEndpoint.java:73)[180:servicemix-camel:2011.01.0]
> at
> org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:116)[180:servicemix-camel:2011.01.0]
> at
> org.apache.servicemix.camel.CamelConsumerEndpoint.process(CamelConsumerEndpoint.java:70)[180:servicemix-camel:2011.01.0]
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:651)[121:servicemix-common:2011.01.0]
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:623)[121:servicemix-common:2011.01.0]
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:501)[121:servicemix-common:2011.01.0]
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:370)[121:servicemix-common:2011.01.0]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_24]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_24]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_24]
> Caused by: org.apache.camel.NoTypeConversionAvailableException: No type
> converter available to convert from type:
> javax.xml.transform.stream.StreamSource to the required type:
> java.lang.String with value javax.xml.transform.stream.StreamSource@fd01b1
>
> Please find attached log file along with beans.xml.
> http://servicemix.396122.n5.nabble.com/file/n4665554/beans.xml beans.xml
> http://servicemix.396122.n5.nabble.com/file/n4665554/ihub.log.1 ihub.log.1
> Regards,
> Praveen Chakinala
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/No-type-converter-available-to-convert-from-type-javax-xml-transform-stream-StreamSource-to-the-reque-tp4665554p4665554.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
_____
If you reply to this email, your message will be added to the discussion below:
http://servicemix.396122.n5.nabble.com/No-type-converter-available-to-convert-from-type-javax-xml-transform-stream-StreamSource-to-the-reque-tp4665554p4665652.html
To unsubscribe from No type converter available to convert from type: javax.xml.transform.stream.StreamSource to the required type: org.apache.camel.StreamCache with 124 KB File Size, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4665554&code=cHJhdmVlbi5jaGFraW5hbGFAcGxhbmV0c29mdC5jb218NDY2NTU1NHwtMjAwNDE3OTQwNg==> .
--
View this message in context: http://servicemix.396122.n5.nabble.com/No-type-converter-available-to-convert-from-type-javax-xml-transform-stream-StreamSource-to-the-reque-tp4665554p4665696.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.