![]() |
|
|
|
|
Change By:
|
Ivo Ladage - van Doorn
(23/May/12 9:38 AM)
|
|
Description:
|
I use the Amdatu ace client to create and update features in the AMS. I created a feature using:
{code} AceClientWorkspace workspace = new AceClient(CLIENT_ENDPOINT).createNewWorkspace(); Feature feature = new FeatureBuilder() .setName(name) .setDescription(name) .build(); workspace.createResource(feature); workspace.commit(); workspace.remove(); {code}
Now when I run the same code again, I get a 400 AceClientException, apparently since the feature already exists. And so I tried to retrieve the feature first, to verify if it exists using:
{code} Feature f = workspace.getResource(Feature.class, name); {code}
But this also results in an exception:
org.amdatu.ace.client.AceClientException: Failed to get data: http://localhost:8080/client/work/rest-8/feature/cassandra
I do see the feature in the AMS UI, so I am sure it exists.
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers