-
1. Re: Camel XSL transformation error.. bit wierd
davsclaus Oct 30, 2011 4:06 AM (in response to rchallapalli)What version of Camel are you using? And are you running in Fuse ESB? And do you use spring-dm or blueprint if using OSGi?
-
2. Re: Camel XSL transformation error.. bit wierd
rchallapalli Oct 30, 2011 1:22 PM (in response to davsclaus)Hi d,
I am using FUse ESB (apache-servicemix-4.4.1-fuse-01-06), it has camel 2.8, and using OSGi (blueprint).
Thanks & Best Regards,
Ravi
Edited by: rchallapalli on Oct 30, 2011 5:22 PM
-
3. Re: Camel XSL transformation error.. bit wierd
davsclaus Oct 31, 2011 2:57 AM (in response to rchallapalli)What is the inputUri ? is it from CXF ?
-
4. Re: Camel XSL transformation error.. bit wierd
rchallapalli Oct 31, 2011 8:29 AM (in response to davsclaus)Hi, the inputUri is simple http/jetty listener. The request xml comes as http body.
Thanks,
Ravi
-
5. Re: Camel XSL transformation error.. bit wierd
davsclaus Oct 31, 2011 8:53 AM (in response to rchallapalli)Try adding
.convertBodyTo(String.class)
Right after the from, to force the message into a String which should not have this conversion issue
-
6. Re: Camel XSL transformation error.. bit wierd
rchallapalli Oct 31, 2011 3:32 PM (in response to davsclaus)Hi d,
I tried it already and mentioned in my very first post. However I tried it again now just building a very simple bundle and a route as below
from("jetty:http://0.0.0.0:8081/httpin").convertBodyTo(String.class)
.log("Input CD List Http message: $") .to("xslt:cds.xsl") .log("Transformed Http message: $")
.inOnly("activemq:outboundQueue");
I took the below simple XSLT from W3Schools which transforms XML to html code.
http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog_ex3
I tried .convertBodyTo(StreamSource.class) as well.. nu luck. very frustrating situation at the very beginning of my app.
seems there is some prob with the xslt:... component
Thanks,
ravi
-
7. Re: Camel XSL transformation error.. bit wierd
davsclaus Nov 1, 2011 4:39 AM (in response to rchallapalli)Hi
I logged a ticket to look into this when we got a bit time
-
8. Re: Camel XSL transformation error.. bit wierd
rchallapalli Nov 1, 2011 5:55 AM (in response to davsclaus)Thank you very much davsclaus !
-
9. Re: Camel XSL transformation error.. bit wierd
rchallapalli Nov 3, 2011 12:58 PM (in response to davsclaus)Hi davasclaus,
TI had updated the camel-core, camel-bluepring bundles to 2.8.1 in my servicemix container which were 2.8.0 and the xslt stuff is working now. Seems 2.8.0 only has the issue.
Thanks alot for your help!
Thanks & best Regards,
Ravi.
-
10. Re: Camel XSL transformation error.. bit wierd
futuredan Nov 7, 2011 10:29 AM (in response to rchallapalli)I am experiencing the same issue and I would like to know how you resolved it.
Who is TI?
How did you update camel to 2.8.1 in your container?
-
11. Re: Camel XSL transformation error.. bit wierd
purwara Nov 7, 2011 11:41 AM (in response to futuredan)Hi,
I am also facing the same issue. My Route works with apache-servicemix-4.4.1-fuse-00-08 version but not working with latest fuse release apache-servicemix-4.4.1-fuse-01-06.
Can someone help me , how to update camel version.
Thanks,
Ankur
-
12. Re: Camel XSL transformation error.. bit wierd
rchallapalli Nov 7, 2011 4:32 PM (in response to purwara)Hi,
check the camel-core bundle version intalled in your servicemix container
you can use the below command
karaf> list | grep camel-core
you should see result something like below
at the end is your version. if the version is not 2.8.1 uninstall that bundle using the below command:
karaf> uninstall 263
263 is bundle id on my machine, check what's yours.
now install the new 2.8.1 bundle as follows
karaf> install mvn:org.apache.camel/camel-core/2.8.1
Note:
camel-blueprint & camel-spring (these 2 as of I came across) has dependency on camel-core so you need to update them as well. For doing so follow the above procedure replacing camel-core with camel-blueprint & camel-spring.
excuse for being too elaborative.
hope this helps!
ravi
-
13. Re: Camel XSL transformation error.. bit wierd
rchallapalli Nov 7, 2011 4:34 PM (in response to futuredan)Apologies for the typo.. I meant 'I' when I typed TI.
btw see the steps to resolve in this in the below posts following.
Thanks,
ravi
-
14. Re: Camel XSL transformation error.. bit wierd
futuredan Nov 7, 2011 5:15 PM (in response to rchallapalli)Thanks for responding, Ravi.
In the camel feature file, camel-core is defined as follows:
'
'
Did you update the karaf bundle as well?
Do you know if fuse has updated camel bundles?
Edited by: futuredan on Nov 7, 2011 5:15 PM