title: dynamoDB Transaction Manager
body: <p>I have a scenario where i have to execute multiple queries (delete and add) so i am using Transaction Library of dynamoDB but i am getting serialisation error. I referred this url as an example 
  <a href="http://aws.amazon.com/blogs/aws/dynamodb-transaction-library/" rel="nofollow noreferrer">http://aws.amazon.com/blogs/aws/dynamodb-transaction-library/</a></p>
  
  <p>Below is my code:</p>
  
  <pre><code>DynamoDBScanExpression scanExpression = new DynamoDBScanExpression();
  PaginatedScanList&lt;FinanceIndex&gt; financeIndex = mapper.scan(FinanceIndex.class, scanExpression);
  String index, index1 = null;
  
  AWSCredentials credentials = Application.getCredentials();
  AmazonDynamoDB client = new AmazonDynamoDBClient(credentials);
  TransactionManager manager = new TransactionManager(client, "Transactions", "TransactionImages");
  TransactionManager.verifyOrCreateTransactionTable(client, "Transactions", new Long(10) , new Long(10), new Long(1060));
  TransactionManager.verifyOrCreateTransactionImagesTable(client, "TransactionImages", new Long(10), new Long(10), new Long(1060));
  for (FinanceIndex financeID : financeIndex) {
    index1 = financeID.getID();
    Transaction t1 = manager.newTransaction();
    Map&lt;String, AttributeValue&gt; reply1 = new HashMap&lt;String, AttributeValue&gt;();
    reply1.put("id", new AttributeValue(index1));
    t1.deleteItem(new DeleteItemRequest().withTableName("FinanceIndex").withKey(reply1));
  
    //mapper.delete(financeID);
    int id = Integer.valueOf(index1);
    id = id + 1;
    index = String.valueOf(id);
    financeID.setID(index);
    //mapper.save(financeID);
    Map&lt;String, AttributeValue&gt; reply2 = new HashMap&lt;String, AttributeValue&gt;();
    reply2.put("id", new AttributeValue(financeID.getID()));
    t1.putItem((new PutItemRequest().withTableName("FinanceIndex").withItem(reply2)));
    t1.commit();
  }
  return index1;
  </code></pre>
  
  <p>I get below error:</p>
  
  <p>com.amazonaws.services.dynamodbv2.transactions.exceptions.TransactionAssertionException: d1c3bb93-e9b7-4052-b328-b357ab412a3a - Failed to serialize request com.amazonaws.services.dynamodbv2.transactions.Request$DeleteItem@4dcdd700 com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class com.amazonaws.event.ProgressListener$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: com.amazonaws.services.dynamodbv2.transactions.DeleteItem["request"]->com.amazonaws.services.dynamodbv2.model.DeleteItemRequest["generalProgressListener"])</p>
  
  <p>Can anyone tell me what am i doing wrong?
  Thanks in advance.</p>