title: Simple DynamoDB request failing with ResourceNotFoundException
body: <p>I'm just getting up and running with DynamoDB using the Java SDK (v1.8). I've created a very simple table using the AWS console. My table has a primary hash key, which is a String (no range). I've put a single item into the table with 4 other attribute values (all Strings).</p>
  
  <p>I'm making a simple Java request for that item in the table, but it's failing with <code>ResourceNotFoundException</code>. I'm absolutely positive that the table name I'm supplying is correct, as is the name of the primary hash key that I'm using to query the item. The table status is listed in the AWS console as <code>Active</code> and I can see the item and its values too.</p>
  
  <p>This is the error I'm getting:</p>
  
  <pre><code>Requested resource not found (Service: AmazonDynamoDB; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: ...)
  </code></pre>
  
  <p>I've tried the following (using the <code>dynamodbv2</code> versions of the classes):</p>
  
  <pre><code>Map&lt;String, AttributeValue&gt; key = new HashMap&lt;String, AttributeValue&gt;();
  key.put(PRIMARY_KEY, new AttributeValue().withS(value));
  
  GetItemRequest request = new GetItemRequest()
      .withTableName(TABLE_NAME)
      .withKey(key);
  
  GetItemResult result = client.getItem(request);
  </code></pre>
  
  <p>I've also tried using the older, deprecated versions of all these classes, like this:</p>
  
  <pre><code>GetItemRequest request = new GetItemRequest()
          .withTableName(TABLE_NAME)
          .withKey(new Key().withHashKeyElement(new AttributeValue().withS(value)));
  GetItemResult result = client.getItem(request);
  </code></pre>
  
  <p>...but it's the same result.<br>
  My understanding of the <code>ResourceNotFoundException</code> is that it means the table name or attribute referenced is invalid, which is not the case. It can also be thrown if the table is too early in the <code>Creating</code> state, but my table is <code>Active</code>.</p>