Я пытаюсь настроить Alternatordb для разработки приложения на основе DynamoDB, но я получаю эту ошибку, пытаясь установить соединение: я предоставил код, ошибку и pom.xml проекта ниже. Generator работает как автономный сервис. Пожалуйста, укажите, если описание, указанное в неадекватном или неспецифическом. Спасибо! < /P>
исходный код: < /p>
this.client = new AlternatorDBClient();
// Create a table with a primary key named 'name', which holds a string
ProvisionedThroughput thorughput = new ProvisionedThroughput().withReadCapacityUnits(10L).withWriteCapacityUnits(5L);
KeySchemaElement schemaElement = new KeySchemaElement().withAttributeName("Name").withAttributeType("String");
CreateTableRequest createTableRequest = new CreateTableRequest().withTableName(TOPIC_TABLE).withProvisionedThroughput(thorughput);
client.createTable(createTableRequest);
< /code>
ошибка: < /p>
Exception in thread "main" AmazonServiceException: Status Code: 400, AWS Service: AmazonDynamoDB, AWS Request ID: null, AWS Error Code: AmazonServiceException, AWS Error Message: [java.lang.Error: property value is null.]
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:644)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:338)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:190)
at com.michelboudreau.alternator.AlternatorDBClient.invoke(AlternatorDBClient.java:212)
at com.michelboudreau.alternator.AlternatorDBClient.createTable(AlternatorDBClient.java:137)
at Main.run(Main.java:35)
at Main.main(Main.java:23)
< /code>
и вот pom.xml из проекта: < /p>
4.0.0
com.project
AlternatorTest
0.0.1-SNAPSHOT
AlternatorTest
com.michelboudreau
alternator
0.5.0
compile
com.amazonaws
aws-java-sdk
1.4.4.2
true
true
sonatype-nexus
https://oss.sonatype.org/content/groups/public
< /code>
< /p>
Подробнее здесь: https://stackoverflow.com/questions/167 ... r-dynamodb