It should be fixed with CAMEL-6020[1] recently.
Please feel free to verify it with last Camel 2.10.x SNAPSHOT

[1]https://issues.apache.org/jira/browse/CAMEL-6020  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Friday, February 1, 2013 at 8:49 PM, Claus Ibsen wrote:

> On Tue, Jan 29, 2013 at 6:17 PM, Vishal Changrani
> <vishal.changr...@ericsson.com (mailto:vishal.changr...@ericsson.com)> wrote:
> > Hi,
> > I am in the process of upgrading Camel from 2.9.2 to 2.10.3 and I notice 
> > that the validatoin component keeps failing with the exception -
> > "Source parameter of type 'javax.xml.transform.stream.StreamSource' is not 
> > compatible with result parameter of type 
> > 'javax.xml.transform.stream.StreamResult'"
> >  
> > That is because the Java api for validate will not accept StreamSource as 
> > source for the validate(source,result) method.
> >  
> > I see that the 
> > org.apache.camel.processor.validation.ValidatingProcessor.process method in 
> > 2.10.3 does an extra check - isInputStreamNeeded which tends to return true 
> > causing the input body to be converted to a StreamSource and not a SAX 
> > Source as it was the case earlier.
> >  
> > My route is as below,
> >  
> > .from("file://..........")
> > .to("ejb:cms/AlarmActivityLogManager/local?method=logIngestInfo(*, 
> > 'Starting XSD validation')")
> > .to(validator:my_xsd.xsd)
> > .to("ejb:cms/AlarmActivityLogManager/local?method=logIngestInfo(*, 
> > 'Finished XSD validation')")
> >  
> > The exchange body when it comes to the validator component is just a name 
> > of the file that's being processed.
> >  
> > Please can someone comment?
>  
> Try using Camel 2.10.2.
>  
>  
> > Thanks,
> > -v-
>  
>  
>  
>  
>  
> --  
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cib...@redhat.com (mailto:cib...@redhat.com)
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen



Reply via email to