title: Cannot delete Message from SQS Camel Route
body: <p>i recently had a question about <strong>AWS</strong> and <strong>Camel</strong> but finally i fought my way through. Now the application seems to work however i am getting a very strange exception.</p>
  
  <p>First of all my App is divided in two EC2 Instances. Instance one gets the ISBN of the top 10 books from an Amazon RSS Feed and stores it into an. Here is the Code Snippet.</p>
  
  <pre><code>    public static void main(String[] args) throws Exception {
  
      CamelContext context = new DefaultCamelContext();
      context.addRoutes(new RouteBuilder() {
          public void configure() {
  
              from(
                      "rss:http://www.amazon.de/gp/rss/bestsellers/books/ref=zg_bs_books_rsslink?splitEntries=false")
                      .split()
                      .method("RssSplitter", "split")
                      .process(new Dummy())
                      .setProperty("isbn", simple("${body}"))
                      .to("aws-sqs://bookz_sqs?accessKey=acceskey&amp;secretKey=secretKey");
  
          }
      });
      context.start();
      Thread.sleep(10000);
      context.stop();
  
  }
  </code></pre>
  
  <p>Instance two is responsible for reading out the SQS as first operation and finally get additional Book information from oder Booklibraries in the WWW what is no problem, and finally build a RSS Feeder which was no problem too.</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
      /*
       * Here the sqs camel route gets the ISBN out of the queues and stores it in S3.
       */
      CamelContext context = new DefaultCamelContext();
      context.addRoutes(new RouteBuilder() {
          public void configure() {
              from("aws-sqs://bookz_sqs" + "?accessKey=accessKey" + "&amp;secretKey=secretKey").process(new DynamicIsbnEnrich()).process(
                      new DynamicIsbndbEnrich()).process(new DynamicOpLibEnrich()).setHeader(S3Constants.KEY, simple("${property.isbn}")).to(
                      "aws-s3://bookz" + "?accessKey=accesKey" + "&amp;secretKey=secretKEy" + "&amp;region=eu-west-1");
  
          }
      });
      context.start();
      Thread.sleep(10000);
      context.stop();
  }
  </code></pre>
  
  <p>The problem is now the strange exception, which i dont understand and besides SQS is NOT deleting the messages from my queue , however the api sais that the deleteAfter Read is on true by default.</p>
  
  <blockquote>
    <p>2012-12-17 19:45:08,335 [Camel (camel-1) thread #0 - aws-sqs://team09bookz_sqs] WARN  org.apache.camel.component.aws.sqs.SqsConsumer - Error occurred during deleting message.. Caused by: [com.amazonaws.AmazonServiceException - The request must contain the parameter MessageHandle.]
    Status Code: 400, AWS Service: AmazonSQS, AWS Request ID: 0655aa05-ad6f-5571-a83d-e34cc7196343, AWS Error Code: MissingParameter, AWS Error Message: The request must contain the parameter MessageHandle.</p>
  </blockquote>
  
  <p>The application works but i cant delete any messages in the queue and i dont know why, do i require some additional security credentials ?</p>
  
  <p>Anyhow thanks for help</p>