[resolved] SchemaValidationException is undefined for the type RouteDefinition
Hi,
I am going through ESB basics (v 6_0_1 , Processing Route). I have created a route from SetHeader (with XSD validation) to cTry and in catch set 'org.apache.camel.processor.validation.SchemaValidationException.class' for 'Exceptions' and followed by other business logic. While executing the route it is throwing error 'The method doCatch(Class<SchemaValidationException>) is undefined for the type RouteDefinition'. Can somebody please guide regrading this issue ?
Hello, I've tried to create sample root with cTry and throw SchemaValidationException and then catch it it catch block and log exception and it works ok. Can you give me a screenshot of your root? How you handle exception and where it could be thrown. Thanks, Ilya
As I see you do not use "try" connection. I mean after cTry component you use "route", so catch block actually appears without try, that's why you got this error. Just change your "route10" connection to "try".