aws / aws-sdk-java

The official AWS SDK for Java 1.x. The AWS SDK for Java 2.x is available here: https://github.com/aws/aws-sdk-java-v2/
https://aws.amazon.com/sdkforjava
Apache License 2.0
4.12k stars 2.82k forks source link

Unable to create a DevicePool using Device Farm SDK #503

Closed bruno-abreu-sofist-zz closed 8 years ago

bruno-abreu-sofist-zz commented 9 years ago

When I try to create a DevicePool for a project, I'm getting an error from the SDK. I checked and I'm doing everything in the requested way. See the code snipet below:

if(project.getName().equals("Blabla")) { Rule r = new Rule().withAttribute(DeviceAttribute.ARN).withOperator(RuleOperator.EQUALS).withValue("arn:aws:devicefarm:us-west-2::device:986EF2BC62B04362BCA3D5A94344ADB2"); ArrayList collection = new ArrayList(); collection.add(r);

                client.createDevicePool(new CreateDevicePoolRequest().withName("WIC-Android2").withProjectArn(project.getArn()).withRules(collection));

}

The error message is: Error message: null (Service: AWSDeviceFarm; Status Code: 500; Error Code: InternalFailure; Request ID: c803a50e-51c4-11e5-ab89-8bc6a642ae6b)

manikandanrs commented 8 years ago

Duplicate issue #502 . Closing this.