Found the reason behind the above error. Route is ending with a push to archive directory but internally exchange body is sent as the servlet response too. For sending the response camel is again trying to read the file from consumed location.
Modified the route as shown below. <route id="ConsumerRoute"> <from uri="servlet:///requestgeneration?servletName=RequestServlet" /> <pollEnrich uri="file://C:/feed/event"/> <onException> <exception>org.apache.camel.component.file.GenericFileOperationFailedException</exception> <handled> <constant>true</constant> </handled> <log message="read failed: ${exception.stacktrace}" loggingLevel="ERROR" /> <setBody> <simple>Failed to read file: ${exception.message}</simple> </setBody> </onException> <to uri="file://C:/feed/archive" /> <setBody> <simple>Completed processing</simple> </setBody> </route> Now the servlet response is not the file body. Thanks Praveen -- View this message in context: http://camel.465427.n5.nabble.com/servlet-event-based-file-consuming-using-file-component-tp5730356p5730651.html Sent from the Camel - Users mailing list archive at Nabble.com.