camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vishal Changrani <>
Subject XML Validation fails with 2.10.3. Used to work in 2.9.2
Date Tue, 29 Jan 2013 17:17:31 GMT
 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 '' is not compatible with
result parameter of type ''"

That is because the Java api for validate will not accept StreamSource as source for the validate(source,result)

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,

'Starting XSD validation')")
'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?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message