title: Camel Direct end-point exception
body: <p>I am having a simple problem. I am not able to read from a file end-point into a direct end-point. Below is the code snippet:</p>
  
  <pre><code>public class SampleTwo {
  
  
  public static void main(String[] args) throws Exception {
      final CamelContext camelContext = new DefaultCamelContext();
      camelContext.start();
      camelContext.addRoutes(new RouteBuilder() {
  
          @Override
          public void configure() throws Exception {          
              from("file://target/inbox?noop=true&amp;fileName=test.csv").to("direct://start"); //Fails with "No consumers available on endpoint" exception
              //from("file://target/inbox?noop=true&amp;fileName=test.csv").to("file://target/outbox"); //Works
  
          }
      });
  
      Thread.sleep(1000*6000);
  
      // stop the CamelContext
    //  camelContext.stop();
  }}
  </code></pre>
  
  <p>I get an exception "No consumers available on endpoint". It's a simple routing &amp; I have done all I could -spent more than 10hours now :( </p>
  
  <p>Please help ... following as stack trace (Trace enabled)</p>
  
  <pre><code>[hread #0 - file://target/inbox] EventHelper
  TRACE Notifier: org.apache.camel.impl.DefaultRuntimeEndpointRegistry@99e74a is not enabled for the event: ID-01HW466539-57567-1431438054047-0-41 exchange failure: Exchange[test.csv] 
  cause 
  org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://start]. Exchange[test.csv]
  [hread #0 - file://target/inbox] FileConsumer                   
  TRACE Done processing file: GenericFile[test.csv] synchronously
  [hread #0 - file://target/inbox] DefaultErrorHandler            
  ERROR Failed delivery for (MessageId: ID-01HW466539-57567-1431438054047-0-42 on ExchangeId: ID-01HW466539-57567-1431438054047-0-41). Exhausted after delivery attempt: 
  1 caught:
  org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://start]. Exchange[test.csv]
  </code></pre>
  
  <p>Message History</p>
  
  <pre><code>--------------------------------------------------------------------------------------------------------------------------------------
  RouteId              ProcessorId          Processor                                                              Elapsed (ms)
  [route1            ] [route1            ] [file://target/inbox?fileName=test.csv&amp;noop=true                               ] [         3]
  [route1            ] [to1               ] [direct://start                                                                ] [         0]
  </code></pre>
  
  <p>Exchange</p>
  
  <pre><code>---------------------------------------------------------------------------------------------------------------------------------------
  Exchange[
  Id                  ID-01HW466539-57567-1431438054047-0-41
  ExchangePattern     InOnly
  Headers             {breadcrumbId=ID-01HW466539-57567-1431438054047-0-42, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\folder\eclipse-ws-march\camelsampletwo\target\inbox\test.csv, CamelFileContentType=null, CamelFileLastModified=1431426831841, CamelFileLength=45, CamelFileName=test.csv, CamelFileNameConsumed=test.csv, CamelFileNameOnly=test.csv, CamelFileParent=target\inbox, CamelFilePath=target\inbox\test.csv, CamelFileRelativePath=test.csv, CamelRedelivered=false, CamelRedeliveryCounter=0}
  BodyType            org.apache.camel.component.file.GenericFile
  Body                [Body is file based: GenericFile[test.csv]]]
  </code></pre>
  
  <p>Stacktrace</p>
  
  <pre><code>---------------------------------------------------------------------------------------------------------------------------------------
  org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://start]. Exchange[test.csv]
  </code></pre>