title: Dynamodb requestHandler acception
body: <p>I have found a cryptic exception when running dynamo inserts in the cloud, any help or clues as to how to debug such an error ? </p>
  
  <p><strong>Background</strong></p>
  
  <p>The code I am running  :</p>
  
  <ul>
  <li><p>Succesfully inserts data into dynamodb when run from my local machines, but</p></li>
  <li><p>Fails abruptly due to authentication when running in the cloud in a mapreduce job over EMR.</p></li>
  <li><p>Uses a URL endpoint for authentication.</p></li>
  </ul>
  
  <p>I simply create credentials like so:</p>
  
  <pre><code>   client=new DynamoDBClient(new BasicAWSCredentials(
          "XXXX",
          "XXXXXXXXXXX));
     client.setEndpoint("https://dynamodb.eu-west-1.amazonaws.com");
  </code></pre>
  
  <p><strong>The exception Im getting is below:</strong> </p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchFieldError: requestHandlers
          at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.init(AWSSecurityTokenServiceClient.java:214)
          at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.&lt;init&gt;(AWSSecurityTokenServiceClient.java:160)
          at com.amazonaws.auth.STSSessionCredentialsProvider.&lt;init&gt;(STSSessionCredentialsProvider.java:73)
          at com.amazonaws.auth.SessionCredentialsProviderFactory.getSessionCredentialsProvider(SessionCredentialsProviderFactory.java:96)
          at com.amazonaws.services.dynamodb.AmazonDynamoDBClient.setEndpoint(AmazonDynamoDBClient.java:857)
          at com.amazonaws.services.dynamodb.AmazonDynamoDBClient.init(AmazonDynamoDBClient.java:262)
          at com.amazonaws.services.dynamodb.AmazonDynamoDBClient.&lt;init&gt;(AmazonDynamoDBClient.java:181)
          at com.amazonaws.services.dynamodb.AmazonDynamoDBClient.&lt;init&gt;(AmazonDynamoDBClient.java:142)
  </code></pre>