org.apache.camel.FailedToCreateConsumerException: Failed to create Consumer for endpoint: direct://validateFile
Solution 1:
When you call
template.sendBodyAndHeaders
Camel do fire-and-forget - it sends your data into the endpoint and do not wait the result.
You need to use
tamplate.requestBodyAndHeaders
This method waits the data to pass all routes and returns the result back to you.