I have tried the following...:

/*exchange.getIn().setHeader(DdbConstants.KEY_SCHEMA, 
                                new
KeySchemaElement().withAttributeName("id").withKeyType(KeyType.HASH));*/

Which also doesn't work. I get this error when attempting to execute the
send.... It seems to ignore the schema header.

*/Caused by: com.amazonaws.AmazonServiceException: Status Code: 400, AWS
Service: AmazonDynamoDB, AWS Request ID:
NRK75RLT68K7HSQ915THMTVDTBVV4KQNSO5AEMVJF66Q9ASUAAJG, AWS Error Code:
ValidationException, AWS Error Message: 2 validation errors detected: Value
null at 'keySchema.hashKeyElement.attributeName' failed to satisfy
constraint: Member must not be null; Value null at
'keySchema.hashKeyElement.attributeType' failed to satisfy constraint:
Member must not be null/*
        at
com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:753)
        at
com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:414)
        at 
com.amazonaws.http.AmazonHttpClient.execute0(AmazonHttpClient.java:266)
        at 
com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:236)
        at
com.amazonaws.services.dynamodb.AmazonDynamoDBClient.invoke(AmazonDynamoDBClient.java:998)
        at
com.amazonaws.services.dynamodb.AmazonDynamoDBClient.createTable(AmazonDynamoDBClient.java:620)
        at
org.apache.camel.component.aws.ddb.DdbEndpoint.createTable(DdbEndpoint.java:111)
        at
org.apache.camel.component.aws.ddb.DdbEndpoint.doStart(DdbEndpoint.java:93)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at
org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1902)
        at
org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:985)
        at
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:946)
        at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:526)
        ... 62 more



--
View this message in context: 
http://camel.465427.n5.nabble.com/AWS-CAMEL-DynamoDB-Please-Help-tp5748581p5748592.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to